applications/luci-upnp: template change

This commit is contained in:
Jo-Philipp Wich 2010-11-15 22:07:03 +00:00
parent b6ee173c59
commit e3eef6dec6

View file

@ -17,11 +17,9 @@
var stxhr = new XHR(); var stxhr = new XHR();
(function() { (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) function(x, st)
{ {
var st = x.responseText ? eval('(' + x.responseText + ')') : null;
var tb = document.getElementById('upnp_status_table'); var tb = document.getElementById('upnp_status_table');
if (st && tb) if (st && tb)
{ {
/* clear all rows */ /* clear all rows */