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 ed1632b0ab5f3ec593406bbd28dd1e12355b5776..3ef668e9914c885b6d98c8f9224b51324d863db9 100644 (file)
        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 */