applications/luci-upnp: template change
[project/luci.git] / applications / luci-upnp / luasrc / view / upnp_status.htm
index ed1632b..3ef668e 100644 (file)
        var stxhr = new XHR();
        (function() {
                stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null,
        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');
                                var tb = document.getElementById('upnp_status_table');
-
                                if (st && tb)
                                {
                                        /* clear all rows */
                                if (st && tb)
                                {
                                        /* clear all rows */