<%+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)
{
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">