ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1427247 - /ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl
Date Mon, 31 Dec 2012 21:59:04 GMT
Author: jleroux
Date: Mon Dec 31 21:59:04 2012
New Revision: 1427247

URL: http://svn.apache.org/viewvc?rev=1427247&view=rev
Log:
Server hour on webtools jobs list: no functional changes, just a trivial refactoring of ServerHour24HourFormatJs.ftl

Modified:
    ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl

Modified: ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl?rev=1427247&r1=1427246&r2=1427247&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/ServerHour24HourFormatJs.ftl Mon Dec 31
21:59:04 2012
@@ -25,11 +25,10 @@ jQuery(document).ready(function() {
     if (jQuery("#${clockField}").text() === "${uiLabelMap.CommonServerHour}:") {
       serverTimestamp = getServerTimestamp("getServerTimestamp");
       date = new Date(serverTimestamp);
-      jQuery("#${clockField}").text("${uiLabelMap.CommonServerHour}: "  + dateFormat(date,
"yyyy-mm-dd HH:MM:ss"));
     } else {
       date.setSeconds(date.getSeconds() + 1);
-      jQuery("#${clockField}").text("${uiLabelMap.CommonServerHour}: "  + dateFormat(date,
"yyyy-mm-dd HH:MM:ss"));          
     }
+    jQuery("#${clockField}").text("${uiLabelMap.CommonServerHour}: "  + dateFormat(date,
"yyyy-mm-dd HH:MM:ss"));
   }
 })
 </script>
\ No newline at end of file



Mime
View raw message