luci: tools: Fix close modal dialog for NFQWS_OPT

This commit is contained in:
remittor
2025-12-24 18:50:48 +03:00
parent 3d3eb82b7b
commit 246f4a08a0

View File

@@ -556,20 +556,8 @@ return baseclass.extend({
elem.querySelector('div').textContent = val;
}
}
uci.set('zapret', this.cfgsec, this.cfgparam, value);
uci.save().then(() => window.location.reload());
/*
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();
});
*/
uci.set('zapret2', this.cfgsec, this.cfgparam, value);
uci.save().then(ui.hideModal);
},
error: function(e) {