From: Jo-Philipp Wich Date: Mon, 27 Jul 2020 15:04:20 +0000 (+0200) Subject: luci-base: form.js: don't destroy modal form on invalid values when saving X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0cd7ff7054d0c83bd045b5f22ffba5f05d6cc8d;p=project%2Fluci.git luci-base: form.js: don't destroy modal form on invalid values when saving Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index a50d457e21..0a8f87f4b8 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -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)