Changeset 759


Ignore:
Timestamp:
02/12/13 20:19:10 (11 years ago)
Author:
cbipsl
Message:

Mise à jour interface quicklook

Location:
ether_iasi/trunk/web
Files:
2 edited

Legend:

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

    r754 r759  
    2020 
    2121            this.createTools(); 
     22            this.getQuicklook(); 
     23 
    2224        }, 
    2325 
     
    3234 
    3335 
    34             var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerSelect, className: "small", onClick:jQuery.proxy( this.onClickQuicklook, this )} ); 
     36            <%--var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerSelect, className: "small", onClick:jQuery.proxy( this.onClickQuicklook, this )} );--%> 
    3537        }, 
    3638 
     
    4648            paramSelect.parent = div; 
    4749            this.selectSatellites = new Select( paramSelect ); 
    48             this.selectSatellites.add( "metopa", "MetOp-A" ); 
    49             this.selectSatellites.add( "metopb", "MetOp-B" ); 
    50             this.selectSatellites.add( "metopab", '<spring:message code="label.either"/>' ); 
     50            this.selectSatellites.add( "metopa", "MetOp-A", jQuery.proxy(this.getQuicklook, this )); 
     51            this.selectSatellites.add( "metopb", "MetOp-B", jQuery.proxy(this.getQuicklook, this )); 
     52            this.selectSatellites.add( "metopab", '<spring:message code="label.either"/>', jQuery.proxy(this.getQuicklook, this )); 
    5153            this.selectSatellites.selectFirst(); 
    5254        }, 
     
    6365            paramSelect.parent = div; 
    6466            this.selectProjections = new Select( paramSelect ); 
    65             this.selectProjections.add( "global", '<spring:message code="label.globe"/>' ); 
    66             this.selectProjections.add( "europe", '<spring:message code="label.europe"/>' ); 
    67             this.selectProjections.add( "pn", '<spring:message code="label.pole.north"/>' ); 
    68             this.selectProjections.add( "ps", '<spring:message code="label.pole.south"/>' ); 
     67            this.selectProjections.add( "global", '<spring:message code="label.globe"/>', jQuery.proxy(this.getQuicklook, this )); 
     68            this.selectProjections.add( "europe", '<spring:message code="label.europe"/>', jQuery.proxy(this.getQuicklook, this )); 
     69            this.selectProjections.add( "pn", '<spring:message code="label.pole.north"/>', jQuery.proxy(this.getQuicklook, this )); 
     70            this.selectProjections.add( "ps", '<spring:message code="label.pole.south"/>', jQuery.proxy(this.getQuicklook, this )); 
    6971            this.selectProjections.selectFirst(); 
    7072        }, 
     
    8183            paramSelect.parent = div; 
    8284            this.selectSpecies = new Select( paramSelect ); 
    83             this.selectSpecies.add( "CO", 'CO' ); 
    84             this.selectSpecies.add( "H2O", 'H2O' ); 
    85             this.selectSpecies.add( "TS", '<spring:message code="label.surftemp"/>' ); 
     85            this.selectSpecies.add( "CO", 'CO', jQuery.proxy(this.getQuicklook, this )); 
     86//            this.selectSpecies.add( "H2O", 'H2O', jQuery.proxy(this.getQuicklook, this )); 
     87            this.selectSpecies.add( "TS", '<spring:message code="label.surftemp"/>', jQuery.proxy(this.getQuicklook, this )); 
    8688            this.selectSpecies.selectFirst(); 
    8789        }, 
     
    146148 
    147149        // EVENTS ******************************************************** 
    148         onClickQuicklook: function() 
    149         { 
    150             this.containerResultA.empty(); 
    151             this.containerResultB.empty(); 
    152             this.requestQuickLooksBySelectValues(); 
    153         }, 
    154  
    155150        onClickBeginDate: function() 
    156151        { 
    157152            this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 
     153            this.getQuicklook(); 
    158154        }, 
    159155 
     
    165161            this.containerErrors.show(); 
    166162            this.containerErrors.html( result ); 
     163        }, 
     164 
     165        getQuicklook: function() 
     166        { 
     167            this.containerResultA.empty(); 
     168            this.containerResultB.empty(); 
     169            this.requestQuickLooksBySelectValues(); 
    167170        } 
     171 
     172 
    168173    } ); 
    169174 
  • ether_iasi/trunk/web/src/messages_en.properties

    r756 r759  
    99 
    1010label.quicklook=QUICKLOOKS 
    11 label.either=Either 
     11label.either=Both 
    1212label.globe=Global 
    1313label.europe=Europe 
Note: See TracChangeset for help on using the changeset viewer.