summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-10-07 09:30:24 -0400
committerjim-p <jimp@pfsense.org>2010-10-07 09:30:24 -0400
commit6a71611f9b13fb33afe5d71fae0e483dcc4ded42 (patch)
treeadd99d6ccd592692a18b32a60cfad29952d351b4 /usr/local/www/javascript
parent5af7eba3ef401e9dd183a3e1d17c98f8fbf67cb1 (diff)
downloadpfsense-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/local/www/javascript')
-rw-r--r--usr/local/www/javascript/index/ajax.js8
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]);
}
}
}
OpenPOWER on IntegriCloud