diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-30 00:08:17 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-30 00:08:17 +0100 |
commit | 18c60968dc9ee280ea8a71bb98653b74a340668a (patch) | |
tree | 157c0b7fea41e881e03a315aaee8bb8940cdbba3 /applications/luci-app-firewall/htdocs/luci-static | |
parent | 16d049f7cd76f0e309814a2b09cde32ff680d962 (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/htdocs/luci-static')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js | 6 |
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 f40e0c73e1..c98ffe9813 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); |