luci-mod-admin-full: use switch toplogy information for vlan setup
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_network / switch_status.htm
index 53c35ae..f740a4a 100644 (file)
@@ -15,7 +15,7 @@
 
                                        for (var j = 0; j < ports.length; j++)
                                        {
-                                               var th = th0.parentNode.parentNode.childNodes[j+1];
+                                               var th = document.getElementById('portstatus-' + switches[i] + '-' + j);
 
                                                if (ports[j].link)
                                                {