From b0cd7ff7054d0c83bd045b5f22ffba5f05d6cc8d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 Jul 2020 17:04:20 +0200 Subject: [PATCH] luci-base: form.js: don't destroy modal form on invalid values when saving Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2