Skip to content

Commit

Permalink
* fixed the Dashboard not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jahead committed Oct 6, 2013
1 parent d518d1d commit f23d39b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/www/lib/ONOD-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ oGroup.prototype.updateGroup = function (newData, d, hosts) {
function updateGraphs(key) {
var gDta = newData[key],
uDta = [];
uDta.push(null);

if (gDta.data.bScore !== undefined) {
uDta.push({data: {bScore: gDta.data.bScore}, mac: key, time: gDta.time, ls: gDta.ls});
} else uDta.push(null);
Expand All @@ -786,14 +786,13 @@ oGroup.prototype.updateGroup = function (newData, d, hosts) {
uDta.push({data: {signal: gDta.data.rssi}, mac: key, time: gDta.time, snr: gDta.snr});
} else uDta.push(null);

var index = 0;

for(var c in self.dCvs[key].gObj) {
var pClass = self.dCvs[key].dDiv.parentElement.className;
if (pClass.substring(pClass.length - 2, pClass.length) === "in" && ! self.dCvs[key].gObj[c].gHid) {
if(uDta[index] == null) continue;
self.dCvs[key].gObj[c].update(self.dCvs[key], uDta[index]);
if(uDta[c] == null) continue;
self.dCvs[key].gObj[c].update(self.dCvs[key], uDta[c]);
}
index++;
}
}

Expand Down

0 comments on commit f23d39b

Please sign in to comment.