From 6f8a3452f861b7a7756118e7f2c801323edc3e03 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 30 Dec 2019 00:08:17 +0100 Subject: [PATCH] luci-app-firewall: store week- and monthday restrictions as strings Fixes: FS#2661 Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2661 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 18c60968dc9ee280ea8a71bb98653b74a340668a) --- .../htdocs/luci-static/resources/view/firewall/rules.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js index f40e0c73e..c98ffe981 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js @@ -349,12 +349,18 @@ return L.view.extend({ o.value('Thu', _('Thursday')); o.value('Fri', _('Friday')); o.value('Sat', _('Saturday')); + o.write = function(section_id, value) { + return this.super('write', [ section_id, L.toArray(value).join(' ') ]); + }; o = s.taboption('timed', form.MultiValue, 'monthdays', _('Month Days')); o.modalonly = true; o.multiple = true; o.display_size = 15; o.placeholder = _('Any day'); + o.write = function(section_id, value) { + return this.super('write', [ section_id, L.toArray(value).join(' ') ]); + }; for (var i = 1; i <= 31; i++) o.value(i); -- 2.25.1