summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-30 16:13:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-30 16:13:30 +0000
commitf845d2fe42c3c4d1fcaf3a22dde1fe024ef4afd4 (patch)
tree52f45b56f656bd97372bdeedd2174c869067f865 /modules/admin-full
parent087f4b2752b1d5d1e3f10bfb82ba4259aeec85e1 (diff)
modules/admin-full: fix formatting quirk on wifi overview page
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/view/admin_network/wifi_overview.htm5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
index 1bf08cc58f..8e64d1422c 100644
--- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
+++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
@@ -135,6 +135,7 @@ $Id$
assoctable.rows[1].parentNode.removeChild(assoctable.rows[1]);
var devup = { };
+ var rowstyle = 1;
for( var i = 0; i < st.length; i++ )
{
@@ -217,7 +218,7 @@ $Id$
for( var j = 0; j < assoclist.length; j++ )
{
var tr = assoctable.insertRow(-1);
- tr.className = 'cbi-section-table-row cbi-rowstyle-' + ((j % 2) + (i % 2));
+ tr.className = 'cbi-section-table-row cbi-rowstyle-' + rowstyle;
var icon;
var q = (-1 * (assoclist[j].noise - assoclist[j].signal)) / 5;
@@ -245,6 +246,8 @@ $Id$
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[j].signal);
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[j].noise);
+
+ rowstyle = (rowstyle == 1) ? 2 : 1;
}
}
}