From de51aea6abdef6cb5c72e624bfcbe87547d1082a Mon Sep 17 00:00:00 2001 From: bogdan Date: Wed, 12 Apr 2023 08:31:04 +0200 Subject: [PATCH] trying to extract value from multiset select --- HTML/res/cron.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/HTML/res/cron.js b/HTML/res/cron.js index 999bca7..09062a5 100644 --- a/HTML/res/cron.js +++ b/HTML/res/cron.js @@ -25,7 +25,7 @@ function set_cron_string(tnum, s, m, h, d, mm, w) { } } function getSecondSelect(n) { - var s = document.getElementById("seconds").value; + var s = document.getElementsByName("selectSeconds" + n + "[]")[0].value; set_cron_string(n, s, null, null, null, null, null); } function getMinutesSelect(n) { @@ -50,8 +50,7 @@ function closecron(n) { function setcron(n) { var target = document.getElementById("cronext" + n); var content = ""; - content += ("
"); - content += ("
"); content += (""); content += (""); content += (""); @@ -59,10 +58,9 @@ function setcron(n) { content += (""); content += (""); for (s = 0; s < 60; s++) { content += (""); } - content += ("
"); + content += (""); - content += ("
"); - content += ("
"); content += (""); content += (""); content += (""); @@ -70,16 +68,16 @@ function setcron(n) { content += (""); content += (""); for (s = 0; s < 60; s++) { content += (""); } - content += ("
"); + content += (""); content += ("");