summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/form.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-06-06 21:04:04 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:36:25 +0200
commitff775a69f7aab1316404e139718b0526e79b6f1f (patch)
tree1dcf4adb48e7fc624727572f21107b0d5e6551dd /modules/luci-base/htdocs/luci-static/resources/form.js
parentbf3bf6a8a971120148f24052a2699a32cae32730 (diff)
luci-base: form.js: trigger validation before saving cbi map
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/form.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index c4f3b8aece..61518b749d 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -116,6 +116,8 @@ var CBIMap = CBINode.extend({
},
save: function() {
+ this.checkDepends();
+
return this.parse()
.then(uci.save.bind(uci))
.then(this.load.bind(this))