Remove unnecessary variable and fix loop test. Corrects AJAX update of last gateway status table cell (it was never updated before)

This commit is contained in:
jim-p 2010-10-07 09:30:24 -04:00
parent 5af7eba3ef
commit 6a71611f9b

View File

@ -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]);
}
}
}