mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-06 08:38:50 +03:00
luci: tools: Fix close modal dialog for NFQWS_OPT
This commit is contained in:
@@ -556,20 +556,8 @@ return baseclass.extend({
|
|||||||
elem.querySelector('div').textContent = val;
|
elem.querySelector('div').textContent = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uci.set('zapret', this.cfgsec, this.cfgparam, value);
|
uci.set('zapret2', this.cfgsec, this.cfgparam, value);
|
||||||
uci.save().then(() => window.location.reload());
|
uci.save().then(ui.hideModal);
|
||||||
/*
|
|
||||||
return uci.save()
|
|
||||||
.then(L.bind(ui.changes.init, ui.changes))
|
|
||||||
.then(L.bind(ui.changes.displayChanges, ui.changes))
|
|
||||||
//.then(L.bind(ui.changes.apply, ui.changes))
|
|
||||||
.then(ui.addNotification(null, E('p', _('Contents have been saved.')), 'info'))
|
|
||||||
.catch(e => {
|
|
||||||
ui.addNotification(null, E('p', _('Unable to save the contents') + ': %s'.format(e.message)));
|
|
||||||
}).finally(() => {
|
|
||||||
ui.hideModal();
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
},
|
},
|
||||||
|
|
||||||
error: function(e) {
|
error: function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user