From 281d2f617899a0c3a171a66c6a3a14e834aa000c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Oct 2015 19:07:36 +0200 Subject: 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 --- applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-radicale/luasrc/view/radicale') diff --git a/applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm b/applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm index 79d1c36297..b34627536d 100644 --- a/applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm +++ b/applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm @@ -21,12 +21,12 @@ function onclick_startstop(id) { // do start/stop var btnXHR = new XHR(); - btnXHR.get('<%=luci.dispatcher.build_url("admin", "services", "radicale", "startstop")%>', null, + btnXHR.get('<%=url('admin/services/radicale/startstop')%>', null, function(x) { _data2elements(x); } ); } - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "radicale", "status")%>', null, + XHR.poll(5, '<%=url('admin/services/radicale/status')%>', null, function(x, data) { _data2elements(x); } ); -- cgit v1.2.3