summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-07-27 17:04:20 +0200
committerJo-Philipp Wich <jo@mein.io>2020-07-28 20:57:04 +0200
commitb0cd7ff7054d0c83bd045b5f22ffba5f05d6cc8d (patch)
treea861fcf8beb551058836e892badedc6da105ef59 /modules/luci-base
parentde32b72c960b0e08f544472531aab6d154caf0e3 (diff)
luci-base: form.js: don't destroy modal form on invalid values when saving
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
1 files changed, 1 insertions, 1 deletions
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)