From: Jo-Philipp Wich Date: Thu, 6 Jun 2019 19:04:04 +0000 (+0200) Subject: luci-base: form.js: trigger validation before saving cbi map X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff775a69f7aab1316404e139718b0526e79b6f1f;p=oweals%2Fluci.git luci-base: form.js: trigger validation before saving cbi map 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 c4f3b8aec..61518b749 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))