mirror of https://git.openwrt.org/project/luci.git
luci-base: form.js: trigger validation before saving cbi map
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
bf3bf6a8a9
commit
ff775a69f7
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue