summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-upnp/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-07 19:07:36 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-10-07 19:07:36 +0200
commit281d2f617899a0c3a171a66c6a3a14e834aa000c (patch)
tree4b53f67e82b64bb506b3a219a29319b64d1c1ab2 /applications/luci-app-upnp/luasrc/view
parent49a2cb5ad11ccc0225fd3fa1de4b85a0618bbb99 (diff)
Globally replace luci.dispatcher.build_url(...) with url(...) invocations
Also concat multiple string arguments into one while we're at it. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-upnp/luasrc/view')
-rw-r--r--applications/luci-app-upnp/luasrc/view/upnp_status.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-upnp/luasrc/view/upnp_status.htm b/applications/luci-app-upnp/luasrc/view/upnp_status.htm
index d50ed0c4d..ce735cf7b 100644
--- a/applications/luci-app-upnp/luasrc/view/upnp_status.htm
+++ b/applications/luci-app-upnp/luasrc/view/upnp_status.htm
@@ -1,6 +1,6 @@
<script type="text/javascript">//<![CDATA[
function upnp_delete_fwd(idx) {
- XHR.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "delete")%>/' + idx, null,
+ XHR.get('<%=url('admin/services/upnp/delete')%>/' + idx, null,
function(x)
{
var tb = document.getElementById('upnp_status_table');
@@ -10,7 +10,7 @@
);
}
- XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null,
+ XHR.poll(5, '<%=url('admin/services/upnp/status')%>', null,
function(x, st)
{
var tb = document.getElementById('upnp_status_table');