summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-04 17:15:13 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-10 15:28:16 +0200
commit03f952884771aa7aef7406cfe6b959b2c684331b (patch)
tree8e3b183db7f6f5fecbfa45495b407e3d77d28377 /modules/luci-base/htdocs
parent18e6b179111abf2b48e7720b44c083c2c3580031 (diff)
luci-base: form.js: pass-through promise in handleAdd
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js4
1 files changed, 2 insertions, 2 deletions
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(/* ... */) {