From: Jo-Philipp Wich Date: Wed, 4 Sep 2019 15:15:13 +0000 (+0200) Subject: luci-base: form.js: pass-through promise in handleAdd X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03f952884771aa7aef7406cfe6b959b2c684331b;p=oweals%2Fluci.git luci-base: form.js: pass-through promise in handleAdd 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 6832a1646..2ea977f4c 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -1178,8 +1178,8 @@ var CBIGridSection = CBITableSection.extend({ var config_name = this.uciconfig || this.map.config, section_id = uci.add(config_name, this.sectiontype); - this.addedSection = section_id; - this.renderMoreOptionsModal(section_id); + this.addedSection = section_id; + return this.renderMoreOptionsModal(section_id); }, handleModalSave: function(/* ... */) {