mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
5af7eba3ef
commit
6a71611f9b
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user