Changeset 468 for tapas/web


Ignore:
Timestamp:
04/05/12 14:28:58 (12 years ago)
Author:
vmipsl
Message:

serialization array --> transformurage du tableau de values en chaine de values et zouu..

Location:
tapas/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/project/formTapas_script.jsp

    r466 r468  
    331331        preference.format = new Object(); 
    332332        //toutes les valeurs possibles 
    333         preference.format.firstValue = this.selectFormats.getValues(); 
     333        preference.format.firstValue = this.selectFormats.getValuesInString(); 
    334334 
    335335        //la valeur selectionnee 
     
    337337 
    338338        preference.rayleighExtinction = new Object 
    339         preference.rayleighExtinction.firstValue = this.select_ih2oe.getValues(); 
     339        preference.rayleighExtinction.firstValue = this.select_ih2oe.getValuesInString(); 
    340340        preference.rayleighExtinction.secondValue =this.select_irextinction.getValue(); 
    341341 
    342342 
    343343        preference.h2oExtinction = new Object(); 
    344         preference.h2oExtinction.firstValue = this.select_ih2oe.getValues(); 
     344        preference.h2oExtinction.firstValue = this.select_ih2oe.getValuesInString(); 
    345345        preference.h2oExtinction.secondValue = this.select_ih2oe.getValue(); 
    346346 
    347347 
    348348        preference.o3Extinction = new Object(); 
    349         preference.o3Extinction.firstValue = this.select_io3e.getValues(); 
     349        preference.o3Extinction.firstValue = this.select_io3e.getValuesInString(); 
    350350        preference.o3Extinction.secondValue = this.select_io3e.getValue(); 
    351351 
    352352        preference.o2Extinction = new Object(); 
    353         preference.o2Extinction.firstValue = this.select_io2e.getValues(); 
     353        preference.o2Extinction.firstValue = this.select_io2e.getValuesInString(); 
    354354        preference.o2Extinction.secondValue = this.select_io2e.getValue(); 
    355355 
    356356        preference.co2Extinction = new Object(); 
    357         preference.co2Extinction.firstValue = this.select_ico2e.getValues(); 
     357        preference.co2Extinction.firstValue = this.select_ico2e.getValuesInString(); 
    358358        preference.co2Extinction.secondValue = this.select_ico2e.getValue(); 
    359359 
     
    379379 
    380380        instrument.spectralChoice = new Object(); 
    381         instrument.spectralChoice.firstValue = this.selectSpectralUnits.getValues(); 
     381        instrument.spectralChoice.firstValue = this.selectSpectralUnits.getValuesInString(); 
    382382        instrument.spectralChoice.secondValue = this.selectSpectralUnits.getValue(); 
    383383 
     
    400400 
    401401        atmosphere.reference = new Object(); 
    402         atmosphere.reference.firstValue = this.selectClimatoReferences.getValues(); 
     402        atmosphere.reference.firstValue = this.selectClimatoReferences.getValuesInString(); 
    403403        atmosphere.reference.secondValue = this.selectClimatoReferences.getValue(); 
    404404 
  • tapas/web/resources/js/classesForJQuery/Select.js

    r438 r468  
    9494    }, 
    9595 
     96    getValuesInString: function( separator ) 
     97    { 
     98        var valulues = $.makeArray( this.values ); 
     99        if( separator ) 
     100            return valulues.join( separator ); 
     101        else 
     102            return valulues.join(); 
     103    }, 
     104 
    96105    getSize: function() 
    97106    { 
Note: See TracChangeset for help on using the changeset viewer.