projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #643 from chris5560/master
[project/luci.git]
/
applications
/
luci-app-radicale
/
luasrc
/
view
/
radicale
/
btn_startstop.htm
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
b346275
..
d9ef822
100644
(file)
--- a/
applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm
+++ b/
applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm
@@
-4,7
+4,7
@@
// show XHR.poll/XHR.get response on button
function _data2elements(x) {
// show XHR.poll/XHR.get response on button
function _data2elements(x) {
- var btn = document.getElementById("cbid.radicale.
_system
._startstop");
+ var btn = document.getElementById("cbid.radicale.
<%=section%>
._startstop");
if ( ! btn ) { return; } // security check
if (x.responseText == "0") {
btn.value = "<%:Start%>";
if ( ! btn ) { return; } // security check
if (x.responseText == "0") {
btn.value = "<%:Start%>";
@@
-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('<%=url('admin/services/radicale/startstop')%>', null
,
+ btnXHR.
post('<%=url([[admin/services/radicale/startstop]])%>', { token: '<%=token%>' }
,
function(x) { _data2elements(x); }
);
}
function(x) { _data2elements(x); }
);
}
- XHR.poll(5, '<%=url(
'admin/services/radicale/status'
)%>', null,
+ XHR.poll(5, '<%=url(
[[admin/services/radicale/status]]
)%>', null,
function(x, data) { _data2elements(x); }
);
function(x, data) { _data2elements(x); }
);