Author: eallen
Date: 2008-12-11 09:34:16 -0500 (Thu, 11 Dec 2008)
New Revision: 2969
Modified:
mgmt/trunk/cumin/python/cumin/pool.strings
Log:
Reload the pool statistics page if the number of slots changes.
Modified: mgmt/trunk/cumin/python/cumin/pool.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/pool.strings 2008-12-10 22:10:54 UTC (rev 2968)
+++ mgmt/trunk/cumin/python/cumin/pool.strings 2008-12-11 14:34:16 UTC (rev 2969)
@@ -53,12 +53,19 @@
[PoolStatus.javascript]
+var pool_stats_last_all = "";
function updatePoolStatus(id, pool) {
var s = pool.stat;
var sdata = {"div": {"span": [s.active.value, s.all.value]}};
wooly.doc().elembyid(id).update(sdata);
+ if (pool_stats_last_all != "") {
+ if (s.all.value != pool_stats_last_all) {
+ window.location.reload(true);
+ }
+ }
+ pool_stats_last_all = s.all.value;
}
[PoolStatus.html]
Show replies by date