From: Richard Yu Date: Sun, 3 Nov 2019 16:19:33 +0000 (+0800) Subject: luci-base: form.js: fix GridSection not using user-input name when add X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa15370f0eed64ad660d80f582e4da485ff89d24;p=oweals%2Fluci.git luci-base: form.js: fix GridSection not using user-input name when add Signed-off-by: Richard Yu --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index f4cce17fe..7de5e0f76 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -1390,9 +1390,9 @@ var CBIGridSection = CBITableSection.extend({ CBIAbstractSection.prototype.tab.call(this, name, title, description); }, - handleAdd: function(ev) { + handleAdd: function(ev, name) { var config_name = this.uciconfig || this.map.config, - section_id = this.map.data.add(config_name, this.sectiontype); + section_id = this.map.data.add(config_name, this.sectiontype, name); this.addedSection = section_id; return this.renderMoreOptionsModal(section_id);