applications/luci-upnp: template change
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Nov 2010 22:07:03 +0000 (22:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Nov 2010 22:07:03 +0000 (22:07 +0000)
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 */