summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-30 00:08:17 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-30 00:08:17 +0100
commit18c60968dc9ee280ea8a71bb98653b74a340668a (patch)
tree157c0b7fea41e881e03a315aaee8bb8940cdbba3 /applications/luci-app-firewall
parent16d049f7cd76f0e309814a2b09cde32ff680d962 (diff)
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 <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js6
1 files changed, 6 insertions, 0 deletions
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);