applications/luci-upnp: xhr fix

This commit is contained in:
Jo-Philipp Wich 2010-11-17 15:24:13 +00:00
parent 184523b6e7
commit 01039b7fb6

View file

@ -15,7 +15,7 @@
} }
var stxhr = new XHR(); var stxhr = new XHR();
(function() { var update_status = function() {
stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null, stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null,
function(x, st) function(x, st)
{ {
@ -58,11 +58,13 @@
tb.rows[0].parentNode.appendChild(tr); tb.rows[0].parentNode.appendChild(tr);
} }
} }
window.setTimeout(update_status, 5000);
} }
) )
};
window.setTimeout(arguments.callee, 5000); update_status();
})();
]]></script> ]]></script>
<fieldset class="cbi-section"> <fieldset class="cbi-section">