luci-base: form.js: don't destroy modal form on invalid values when saving
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
de32b72c96
commit
b0cd7ff705
@ -2614,7 +2614,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
|
||||
|
||||
/** @private */
|
||||
handleModalSave: function(modalMap, ev) {
|
||||
return modalMap.save()
|
||||
return modalMap.save(null, true)
|
||||
.then(L.bind(this.map.load, this.map))
|
||||
.then(L.bind(this.map.reset, this.map))
|
||||
.then(ui.hideModal)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user