projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Globally replace luci.dispatcher.build_url(...) with url(...) invocations
[project/luci.git]
/
applications
/
luci-app-privoxy
/
luasrc
/
view
/
privoxy
/
detail_startstop.htm
diff --git
a/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm
b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm
index
b9de886
..
8c97dae
100644
(file)
--- a/
applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm
+++ b/
applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm
@@
-21,12
+21,12
@@
function onclick_startstop(id) {
// do start/stop
var btnXHR = new XHR();
function onclick_startstop(id) {
// do start/stop
var btnXHR = new XHR();
- btnXHR.get('<%=
luci.dispatcher.build_url("admin", "services", "privoxy", "startstop"
)%>', null,
+ btnXHR.get('<%=
url('admin/services/privoxy/startstop'
)%>', null,
function(x) { _data2elements(x); }
);
}
function(x) { _data2elements(x); }
);
}
- XHR.poll(5, '<%=
luci.dispatcher.build_url("admin", "services", "privoxy", "status"
)%>', null,
+ XHR.poll(5, '<%=
url('admin/services/privoxy/status'
)%>', null,
function(x, data) { _data2elements(x); }
);
function(x, data) { _data2elements(x); }
);