let the reset activity summary action also reset the state.. javascript errors can...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Feb 2009 18:36:00 +0000 (18:36 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Feb 2009 18:36:00 +0000 (18:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12237 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/menu.js

index 082cde8..86486e9 100644 (file)
@@ -18,8 +18,10 @@ main.menu = function () {
         '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