[rhmessaging-commits] rhmessaging commits: r4275 - mgmt/newdata/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Sep 10 14:59:27 EDT 2010


Author: eallen
Date: 2010-09-10 14:59:26 -0400 (Fri, 10 Sep 2010)
New Revision: 4275

Modified:
   mgmt/newdata/cumin/python/cumin/widgets.strings
Log:
Fix BZ 623168: Changed the Page Updated text to Updated $datetime

Modified: mgmt/newdata/cumin/python/cumin/widgets.strings
===================================================================
--- mgmt/newdata/cumin/python/cumin/widgets.strings	2010-09-10 16:49:25 UTC (rev 4274)
+++ mgmt/newdata/cumin/python/cumin/widgets.strings	2010-09-10 18:59:26 UTC (rev 4275)
@@ -105,13 +105,18 @@
 }
 
 [CuminMainView.javascript]
-    wooly.addPageUpdateListener( function () {
-        var myEffect = new Fx.Morph('heartbeat', {duration: 1000});
+    cumin.set_updated = function () {
+        $('heartbeat').set('text', "Updated " + new Date().format("%Y-%m-%d %H:%M:%S"));
         $('shock').style.display = "none";
         $('heartbeat').style.display = "inline";
         $('heartbeat').style.color = "#000000";
-        setTimeout(function () {myEffect.start({ 'color': ['#000000', '#CCCCCC'] })}, 500);
 
+        if (typeof cumin.myEffect == "undefined")
+            cumin.myEffect = new Fx.Morph('heartbeat', {duration: 1000});
+        setTimeout(function () {cumin.myEffect.start({ 'color': ['#000000', '#666666'] })}, 500);
+    }
+    wooly.addPageUpdateListener( function () {
+        cumin.set_updated();
     });
     cumin.expireIntervalUpdate = function () {
         if (typeof cumin.expireID != "undefined") {
@@ -132,6 +137,9 @@
         }, 30*60*1000);
     };
     cumin.expireIntervalUpdate();
+    window.addEvent('domready', function () {
+        cumin.set_updated();
+    });
 
 [CuminMainView.html]
 <div id="head">
@@ -220,7 +228,7 @@
 
 [CuminHeartBeat.html]
 <div id="updateStatus">
-    <span id="heartbeat">Page Updated</span>
+    <span id="heartbeat"></span>
     <button id="shock">Resume Updates</button>
 </div>
 



More information about the rhmessaging-commits mailing list