luci-base: form.js: trigger validation before saving cbi map

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-06-06 21:04:04 +02:00
parent bf3bf6a8a9
commit ff775a69f7
1 changed files with 2 additions and 0 deletions

View File

@ -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))