luci-base: form.js: pass-through promise in handleAdd
authorJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 15:15:13 +0000 (17:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 13:28:16 +0000 (15:28 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index 6832a16460afbcac15b03482fbb4a29cb22f4cbd..2ea977f4c7ef43dd1637c16e586c1ac9cd1b7e0d 100644 (file)
@@ -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(/* ... */) {