X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-upnp%2Fluasrc%2Fview%2Fupnp_status.htm;h=3ef668e9914c885b6d98c8f9224b51324d863db9;hp=ed1632b0ab5f3ec593406bbd28dd1e12355b5776;hb=e3eef6dec687a168cd9bfbfcb360e6b9d7471dd0;hpb=b8f810092b585e0e21e6c6a2e6a6e8e27b335b66;ds=sidebyside diff --git a/applications/luci-upnp/luasrc/view/upnp_status.htm b/applications/luci-upnp/luasrc/view/upnp_status.htm index ed1632b0a..3ef668e99 100644 --- a/applications/luci-upnp/luasrc/view/upnp_status.htm +++ b/applications/luci-upnp/luasrc/view/upnp_status.htm @@ -17,11 +17,9 @@ var stxhr = new XHR(); (function() { 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'); - if (st && tb) { /* clear all rows */