summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm
diff options
context:
space:
mode:
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>2016-02-07 09:30:29 +0100
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>2016-02-07 09:30:29 +0100
commit026ac8d033f4c0a65b0c8d121d1a2a86b2bd1ee1 (patch)
tree767f1d7e3a4614b35ace2a9377ae63139172a887 /applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm
parent26d009aff924f8253533ae6a303f61fe0d35d2f4 (diff)
luci-app-radicale: bump to version 1.1.0
- support Radicale > v1.1 - modified version detection - adaption to new function version_compare() in ipkg.lua - adaption to fixed Flag.parse() in cbi.lua - adaption to new property map.tabbed in cbi.lua using map template with extensions - change optional values to non optional - add support new option "system.boot_delay" Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm')
-rw-r--r--applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm6
1 files changed, 3 insertions, 3 deletions
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 dbf4dddbc..d9ef82214 100644
--- 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) {
- 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%>";
@@ -21,12 +21,12 @@
function onclick_startstop(id) {
// do start/stop
var btnXHR = new XHR();
- btnXHR.post('<%=url('admin/services/radicale/startstop')%>', { token: '<%=token%>' },
+ btnXHR.post('<%=url([[admin/services/radicale/startstop]])%>', { token: '<%=token%>' },
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); }
);