[rhmessaging-commits] rhmessaging commits: r3320 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Apr 23 11:16:31 EDT 2009


Author: eallen
Date: 2009-04-23 11:16:31 -0400 (Thu, 23 Apr 2009)
New Revision: 3320

Modified:
   mgmt/trunk/cumin/python/cumin/stat.strings
Log:
Allow stacked graphs to draw even if they require longer than the update interval.

Modified: mgmt/trunk/cumin/python/cumin/stat.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/stat.strings	2009-04-23 15:15:24 UTC (rev 3319)
+++ mgmt/trunk/cumin/python/cumin/stat.strings	2009-04-23 15:16:31 UTC (rev 3320)
@@ -175,12 +175,13 @@
 <script type="text/javascript">
 //<![CDATA[
 (function() {
-    function update() {
-        cumin.updateChart("{id}");
-    }
+    wooly.addPageUpdateListener( 
+        function () {
+            if (document.images["{id}"].className == "Loading")
+                return;
+            cumin.updateChart("{id}");
+        });
 
-    wooly.addPageUpdateListener(update);
-
     $('{id}').onfullpage = function (width, height) { stackedNotify(true, width, height, '{id}'); };
     $('{id}').onrestore = function () { stackedNotify(false, {width}, 100, '{id}'); };
     var oImg = document.images['{id}'];




More information about the rhmessaging-commits mailing list