modules/admin-full: readd atm bridge config
[project/luci.git] / modules / admin-full / luasrc / view / admin_network / iface_status.htm
index 4deebee..34e3ddd 100644 (file)
@@ -4,10 +4,9 @@
        var iwxhr = new XHR();
        (function() {
                iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", self.network)%>', null,
-                       function(x)
+                       function(x, ifc)
                        {
-                               var ifc = x.responseText ? eval('(' + x.responseText + ')') : { };
-                               if (ifc)
+                               if (ifc && (ifc = ifc[0]))
                                {
                                        var is_up = (ifc.flags && ifc.flags.up);
                                        var rxb = ifc.stats ? (ifc.stats["rx_bytes"] / 1024) : 0;
@@ -62,7 +61,7 @@
                                                                d.innerHTML += String.format(
                                                                        '%s%s/%d',
                                                                        i ? ', ' : '',
-                                                                       ifc.ip6addrs[i].addr,
+                                                                       ifc.ip6addrs[i].addr.toUpperCase(),
                                                                        ifc.ip6addrs[i].prefix
                                                                );