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>
This commit is contained in:
parent
16d049f7cd
commit
18c60968dc
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue