[open-ils-commits] r12237 - branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 19 13:36:04 EST 2009


Author: phasefx
Date: 2009-02-19 13:36:00 -0500 (Thu, 19 Feb 2009)
New Revision: 12237

Modified:
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/menu.js
Log:
let the reset activity summary action also reset the state.. javascript errors can disrupt our tracking of network requests versus responses

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/menu.js
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/menu.js	2009-02-19 18:23:57 UTC (rev 12236)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/menu.js	2009-02-19 18:36:00 UTC (rev 12237)
@@ -18,8 +18,10 @@
         'click',
         function() {
             if ( window.confirm(offlineStrings.getString('menu.reset_network_stats')) ) {
-                var x = document.getElementById('network_progress_rows');
-                while(x.firstChild) { x.removeChild( x.lastChild ); }
+                var y = document.getElementById('network_progress_rows');
+                while(y.firstChild) { y.removeChild( y.lastChild ); }
+                x.setAttribute('mode','determined');
+                x.setAttribute('count','0');
             }
         },
         false



More information about the open-ils-commits mailing list