Changeset 717 for ether_iasi


Ignore:
Timestamp:
01/17/13 14:43:02 (11 years ago)
Author:
vmipsl
Message:

quicklook

Location:
ether_iasi/trunk/web
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ether_iasi/trunk/web/project/quicklook.jsp

    r716 r717  
    4242    <div id="containerTools" class="containerTools"></div> 
    4343 
    44     <div id="containerQuickLookA"></div> 
     44    <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/></div> 
    4545 
    46     <div id="containerQuickLookB"></div> 
     46    <div id="containerQuickLookB" class="containerQuickLooks"><spring:message code="label.MetOpB"/></div> 
    4747 
     48    <div id="errors"></div> 
    4849    <%-- ****************** TITLE & TOOLS ****************** --%> 
    4950    <script type="text/javascript"> 
  • ether_iasi/trunk/web/project/quicklook_script.jsp

    r716 r717  
    1111            this.containerQuickLookA = $( "#containerQuickLookA" ); 
    1212            this.containerQuickLookB = $( "#containerQuickLookB" ); 
    13 //        this.containerErrors = $( "#errors" ); 
     13            this.containerErrors = $( "#errors" ); 
    1414 
    1515            /** *********** VARIABLES *********** **/ 
    16             this.language = '<spring:message code="language"/>'; 
    17             <%--this.jSONUser = <%=WebHelper.getJSONUser( request )%> ? <%=WebHelper.getJSONUser( request )%> : false;--%> 
     16 
    1817 
    1918            this.createTools(); 
     
    2625            this.createSelectSatellites(); 
    2726            this.createSelectLocations(); 
     27 
     28            var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerTools, className: "small", onClick:jQuery.proxy( this.onClickButton, this )} ); 
    2829        }, 
    2930 
     
    3132        { 
    3233            var div = $( document.createElement( "div" ) ); 
    33             div.html('<spring:message code="label.satellite"/> :'); 
     34            div.html( '<spring:message code="label.satellite"/> :' ); 
    3435            div.addClass( "selectTools" ); 
    3536            this.containerTools.append( div ); 
     
    4849        { 
    4950            var div = $( document.createElement( "div" ) ); 
    50             div.html('<spring:message code="label.location"/> :'); 
     51            div.html( '<spring:message code="label.location"/> :' ); 
    5152            div.addClass( "selectTools" ); 
    5253            this.containerTools.append( div ); 
     
    6263 
    6364        // REQUESTS ******************************************************** 
    64         requestChangeLocale: function() 
     65        requestQuickLooksBySelectValues: function() 
    6566        { 
    6667            $.ajax( { 
    67                 url: "project?methodName=setLocale&language=<spring:message code="label.language.value.to.switch"/>", 
    68                 success:function() 
    69                 { 
    70                     location.reload(); 
    71                 }, 
    72                 error: jQuery.proxy( this.showErrors, [this] ) 
    73             } ); 
    74         }, 
    75  
    76         requestDataByLogo: function() 
    77         { 
    78             if( !this.selectedLogo && !this.selectedLogo.id ) 
    79                 return; 
    80  
    81             $.ajax( { 
    8268                url: "statistic?methodName=searchMainStatisticsByProject&name=" + this.selectedLogo.id, 
    83                 success:jQuery.proxy( this.handleDataByLogo, this ), 
    84                 error: jQuery.proxy( this.showLoginError, this ) 
     69                success:jQuery.proxy( this.handleQuickLooksBySelectValues, this ), 
     70                error: jQuery.proxy( this.showErrors, this ) 
    8571            } ); 
    8672        }, 
     
    8874 
    8975        // HANDLES ******************************************************** 
    90         handleDataByLogo: function( result ) 
     76        handleQuickLooksBySelectValues: function( result ) 
    9177        { 
    9278//        this.displaySummary(); 
     
    9581 
    9682        // EVENTS ******************************************************** 
    97         onClickHome: function() 
     83        onClickButton: function() 
    9884        { 
    99             location.reload(); 
     85            alert( "paf : " + this.selectLocalisations.getValue() + ",  " + this.selectSatellites.getValue() ); 
    10086        }, 
    10187 
    102         onClickLanguage: function() 
     88        // OTHERS ******************************************************** 
     89        showErrors: function( result ) 
    10390        { 
    104             this.requestChangeLocale(); 
     91            this.containerErrors.show(); 
     92            this.containerErrors.html( result ); 
    10593        } 
    10694 
    107  
    108         // OTHERS ******************************************************** 
    10995    } ); 
    11096 
  • ether_iasi/trunk/web/resources/css/ether.css

    r716 r717  
    113113} 
    114114 
     115#errors { 
     116    position: absolute; 
     117    background: #FEF1EC; 
     118    -moz-border-radius: 4px 4px 4px 4px; 
     119    -webkit-border-radius: 4px 4px 4px 4px; 
     120    border: 1px solid #CD0A0A; 
     121    color: #CD0A0A; 
     122    padding: 10px; 
     123    margin: 10px; 
     124    float: right; 
     125    display: none; 
     126    z-index: 2; 
     127} 
     128 
    115129/** ************************************ **/ 
    116130/** ************ LOADING *************** **/ 
  • ether_iasi/trunk/web/resources/css/iasi.css

    r716 r717  
    3939    margin: 0 0 0 20px; 
    4040    float: left; 
     41    width: 900px; 
     42} 
     43 
     44.containerQuickLooks { 
     45    float: left; 
     46    margin: 40px 0; 
     47    width: 900px; 
     48    text-align: center; 
    4149} 
    4250 
    4351/** ***************************************************** **/ 
    44 /** ********************** CONTAINER ******************** **/ 
     52/** ************************ OTHERS ********************* **/ 
    4553/** ***************************************************** **/ 
    4654.selectTools { 
    47     float:left; 
     55    float: left; 
    4856    padding-right: 30px; 
    4957} 
     58 
     59#quickLookButton { 
     60    float: right; 
     61    margin: 15px 20px 0; 
     62} 
  • ether_iasi/trunk/web/src/messages_en.properties

    r716 r717  
    55 
    66title=IASI 
     7label.MetOpA=MetOp-A 
     8label.MetOpB=MetOp-B 
    79 
    810label.quicklook=QUICKLOOKS 
     
    1416label.species=Species 
    1517label.date=Date 
     18label.quicklook.button=Get quicklook 
  • ether_iasi/trunk/web/src/messages_fr.properties

    r716 r717  
    55 
    66title=IASI 
     7label.MetOpA=MetOp-A 
     8label.MetOpB=MetOp-B 
     9 
    710 
    811label.quicklook=VISUALISATIONS 
     
    1417label.species=EspÚce 
    1518label.date=Date 
     19label.quicklook.button=Go quicklook 
Note: See TracChangeset for help on using the changeset viewer.