Changeset 731
- Timestamp:
- 01/18/13 17:21:45 (11 years ago)
- Location:
- ether_iasi/trunk/web
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_iasi/trunk/web/project/quicklook.jsp
r722 r731 50 50 </div> 51 51 52 <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/></div> 52 <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/> 53 <div id="containerResultA"></div> 53 54 54 <div id="containerQuickLookB" class="containerQuickLooks"><spring:message code="label.MetOpB"/></div> 55 </div> 56 57 58 <div id="containerQuickLookB" class="containerQuickLooks"> 59 <div id="containerResultB"></div> 60 </div> 55 61 56 62 <div id="errors"></div> -
ether_iasi/trunk/web/project/quicklook_script.jsp
r729 r731 12 12 this.containerQuickLookA = $( "#containerQuickLookA" ); 13 13 this.containerQuickLookB = $( "#containerQuickLookB" ); 14 this.containerResultA = $( "#containerResultA" ); 15 this.containerResultB = $( "#containerResultB" ); 14 16 this.containerErrors = $( "#errors" ); 15 17 … … 99 101 } ); 100 102 103 $( "#beginDate" ).val( formatDate( removeDaysToDate( new Date(), 1 ), "%Y-%m-%d" )); 104 this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 101 105 }, 102 106 … … 116 120 { 117 121 118 var plotName = jQuery.parseJSON( result ).plotNameResult; 119 this.containerQuickLookA.html(plotName); 122 var plotNameA = jQuery.parseJSON( result ).plotNameResultA; 123 var plotNameB = jQuery.parseJSON( result ).plotNameResultB; 124 if (plotNameA) 125 // this.containerResultA.html(plotNameA); 126 this.containerResultA.html("<img src='"+plotNameA+"' width='80px' height='80'>"); 127 if (plotNameB) 128 this.containerResultB.html(plotNameB); 129 120 130 }, 121 131 … … 124 134 onClickQuicklook: function() 125 135 { 136 this.containerResultA.empty(); 137 this.containerResultB.empty(); 126 138 this.requestQuickLooksBySelectValues(); 127 139 }, -
ether_iasi/trunk/web/resources/js/classesForJQuery/etherHelper.js
r728 r731 78 78 } 79 79 80 // This method add days to a date 81 function removeDaysToDate( date, numberOfDays ) 82 { 83 var dayToMs = 24 * 60 * 60 * 1000; 84 var newDate = date.getTime() - numberOfDays * dayToMs; 85 return new Date( newDate ); 86 } 87 80 88 // This method add hours to a date 81 89 function addHoursToDate( date, numberOfHours ) -
ether_iasi/trunk/web/src/com/ether/Controller.java
r724 r731 72 72 final Date date = calendar.getTime(); 73 73 final String fmtDate = DateHelper.formatDate( date, "yyyyMMdd" ); 74 final String plotName = "iasi_" + species + "_" + projection + "_" + fmtDate + "_" + satellite + ".png"; 74 String plotNameA = ""; 75 String plotNameB = ""; 76 if (satellite.equals( "metopa" ) || satellite.equals( "metopab" )) 77 plotNameA = "iasi_" + species + "_" + projection + "_" + fmtDate + "_" + satellite + ".png"; 78 if (satellite.equals( "metopb" ) || satellite.equals( "metopab" )) 79 plotNameB = "iasi_" + species + "_" + projection + "_" + fmtDate + "_" + satellite + ".png"; 80 75 81 final JSONObject result = new JSONObject(); 76 result.put( "plotNameResult", plotName ); 82 result.put( "plotNameResultA", plotNameA ); 83 result.put( "plotNameResultB", plotNameB ); 77 84 return result; 78 85
Note: See TracChangeset
for help on using the changeset viewer.