From 482138c7b2228e28a990e44fa445023ee56435a1 Mon Sep 17 00:00:00 2001 From: bogdan Date: Sun, 7 May 2023 17:29:42 +0200 Subject: [PATCH] fixed saving cron settings --- HTML/res/cron.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HTML/res/cron.js b/HTML/res/cron.js index 0991f1c..bb69e6f 100644 --- a/HTML/res/cron.js +++ b/HTML/res/cron.js @@ -19,6 +19,7 @@ if(alrt) alert(alrt); function savetm(n) { var payload = "tmrec={\"num\":"+n+","; payload += "\"enab\":"+((document.getElementById("encb"+n).checked)?1:0)+","; +payload += "\"prev\":"+((document.getElementById("prev"+n).checked)?1:0)+","; payload += "\"name\":\""+document.getElementById("tname"+n).value+"\","; payload += "\"obj\":"+document.getElementById("object"+n).value+","; payload += "\"act\":"+document.getElementById("action"+n).value+","; @@ -217,7 +218,7 @@ function drawtimers(tarr) { content += ("
"); content +=(""); enb = (tarr[i - 1].prev == 1) ? "checked" : ""; - content += ("
"); + content += (""); content += ("
");