diff options
author | jim-p <jimp@pfsense.org> | 2010-10-07 09:30:24 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-07 09:30:24 -0400 |
commit | 6a71611f9b13fb33afe5d71fae0e483dcc4ded42 (patch) | |
tree | add99d6ccd592692a18b32a60cfad29952d351b4 /usr | |
parent | 5af7eba3ef401e9dd183a3e1d17c98f8fbf67cb1 (diff) | |
download | pfsense-6a71611f9b13fb33afe5d71fae0e483dcc4ded42.zip pfsense-6a71611f9b13fb33afe5d71fae0e483dcc4ded42.tar.gz |
Remove unnecessary variable and fix loop test. Corrects AJAX update of last gateway status table cell (it was never updated before)
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 3259955..b18e12f 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -88,11 +88,9 @@ function updateState(x) { function updateGatewayStats(x){ if (widgetActive("gateways")){ gateways_split = x.split(","); - var counter = 1; - for (var y=0; y<gateways_split.length-1; y++){ - if($('gateway' + counter)) { - $('gateway' + counter).update(gateways_split[y]); - counter++; + for (var y=0; y<gateways_split.length; y++){ + if($('gateway' + (y + 1))) { + $('gateway' + (y + 1)).update(gateways_split[y]); } } } |