[rhmessaging-commits] rhmessaging commits: r4293 - in mgmt/newdata: wooly/resources and 1 other directory.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Wed Sep 15 13:13:56 EDT 2010
Author: eallen
Date: 2010-09-15 13:13:56 -0400 (Wed, 15 Sep 2010)
New Revision: 4293
Modified:
mgmt/newdata/cumin/python/cumin/widgets.strings
mgmt/newdata/wooly/resources/wooly.js
Log:
Fix BZ 633943: When "Resume Updates" button is clicked, change text and resume updating immediately instead of after 1 update interval.
Modified: mgmt/newdata/cumin/python/cumin/widgets.strings
===================================================================
--- mgmt/newdata/cumin/python/cumin/widgets.strings 2010-09-15 16:44:44 UTC (rev 4292)
+++ mgmt/newdata/cumin/python/cumin/widgets.strings 2010-09-15 17:13:56 UTC (rev 4293)
@@ -131,8 +131,10 @@
$('heartbeat').style.display = "none";
$('shock').style.display = "block"}, 1000);
$('shock').onclick = function () {
+ wooly.updateNow();
wooly.resumeIntervalUpdate();
cumin.expireIntervalUpdate();
+ cumin.set_updated();
}
}, 30*60*1000);
};
Modified: mgmt/newdata/wooly/resources/wooly.js
===================================================================
--- mgmt/newdata/wooly/resources/wooly.js 2010-09-15 16:44:44 UTC (rev 4292)
+++ mgmt/newdata/wooly/resources/wooly.js 2010-09-15 17:13:56 UTC (rev 4293)
@@ -479,6 +479,12 @@
wooly.intervalUpdateInfo.interval,
wooly.intervalUpdateInfo.passback);
}
+ this.updateNow = function () {
+ wooly.setIntervalUpdate(wooly.intervalUpdateInfo.url,
+ wooly.intervalUpdateInfo.callback,
+ 0,
+ wooly.intervalUpdateInfo.passback);
+ }
this.doubleIntervalUpdate = function () {
wooly.cancelIntervalUpdate();
wooly.intervalUpdateInfo.interval *= 2;
More information about the rhmessaging-commits
mailing list