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:
Jo-Philipp Wich 2020-07-27 17:04:20 +02:00
parent de32b72c96
commit b0cd7ff705

View file

@ -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)