diff options
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 3 |
1 files changed, 2 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 9c5cb9365..44a2df22f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -132,10 +132,11 @@ var CBIMap = CBINode.extend({ return Promise.all(tasks); }, - save: function() { + save: function(cb) { this.checkDepends(); return this.parse() + .then(cb) .then(uci.save.bind(uci)) .then(this.load.bind(this)) .then(this.renderContents.bind(this)) |