modules/admin-full: IE fixes
[project/luci.git] / modules / admin-full / luasrc / view / admin_network / iface_status.htm
index 5836d41..d4b0287 100644 (file)
@@ -1,8 +1,8 @@
 <%+cbi/valueheader%>
 
-<script type="text/javascript"><![CDATA[
+<script type="text/javascript">//<![CDATA[
        var iwxhr = new XHR();
-       (function() {
+       var update_status = function() {
                iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", self.network)%>', null,
                        function(x, ifc)
                        {
@@ -61,7 +61,7 @@
                                                                d.innerHTML += String.format(
                                                                        '%s%s/%d',
                                                                        i ? ', ' : '',
-                                                                       ifc.ip6addrs[i].addr,
+                                                                       ifc.ip6addrs[i].addr.toUpperCase(),
                                                                        ifc.ip6addrs[i].prefix
                                                                );
 
                                        else if (d)
                                                d.innerHTML = '<%:Interface not present or not connected yet.%>';
                                }
+
+                               window.setTimeout(update_status, 5000);
                        }
                )
+       };
 
-               window.setTimeout(arguments.callee, 5000);
-       })();
-]]></script>
+       update_status();
+//]]></script>
 
 <table>
        <tr class="cbi-section-table">