Globally replace luci.dispatcher.build_url(...) with url(...) invocations
[project/luci.git] / applications / luci-app-radicale / luasrc / view / radicale / btn_startstop.htm
index 79d1c36..b346275 100644 (file)
        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); }
        );