Author: jfthomps
Date: Mon Aug 22 19:36:30 2016
New Revision: 1757260

URL: http://svn.apache.org/viewvc?rev=1757260&view=rev
Log:
VCL-983 - Manage computers does not update "Computers in table" count after 
"Refresh Computer Data" is clicked

computers.js: modified initPage: added dojo.connect for 
resourcegrid._onFetchComplete to update the row count; removed setTimeout that 
updated the row count after 3 seconds because the connected function handles 
this now

Modified:
    vcl/trunk/web/js/resources/computer.js

Modified: vcl/trunk/web/js/resources/computer.js
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/js/resources/computer.js?rev=1757260&r1=1757259&r2=1757260&view=diff
==============================================================================
--- vcl/trunk/web/js/resources/computer.js (original)
+++ vcl/trunk/web/js/resources/computer.js Mon Aug 22 19:36:30 2016
@@ -292,9 +292,7 @@ function initPage() {
                resourcestore.comparatorMap['procspeed'] = resource.nocasesort;
                resourcestore.comparatorMap['network'] = resource.nocasesort;
 
-               setTimeout(function() {
-                       dojo.byId('computercount').innerHTML = 'Computers in 
table: ' + resourcegrid.rowCount;
-               }, 3000);
+               dojo.connect(resourcegrid, '_onFetchComplete', function() 
{dojo.byId('computercount').innerHTML = 'Computers in table: ' + 
resourcegrid.rowCount;});
        }
 }
 


Reply via email to