From: phasefx Date: Thu, 19 Feb 2009 18:36:00 +0000 (+0000) Subject: let the reset activity summary action also reset the state.. javascript errors can... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5070e53deb25910879e732b7260e8c8d0f134844;p=Evergreen.git let the reset activity summary action also reset the state.. javascript errors can disrupt our tracking of network requests versus responses git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12237 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/main/menu.js b/Open-ILS/xul/staff_client/server/main/menu.js index 082cde8cd2..86486e98d5 100644 --- a/Open-ILS/xul/staff_client/server/main/menu.js +++ b/Open-ILS/xul/staff_client/server/main/menu.js @@ -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