diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-03 17:55:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 17:55:09 +0100 |
commit | 740d07573b34ccc38475445ff592b46556800c80 (patch) | |
tree | c4c37393cee273ac27d15b6202966663340e1f94 /modules | |
parent | 6c7b1e156d8a3342864a5e5e03a8331f6819109f (diff) | |
parent | fa15370f0eed64ad660d80f582e4da485ff89d24 (diff) |
Merge pull request #3256 from ysc3839/gridsection
luci-base: form.js: fix GridSection not using user-input name when add
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 4 |
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 f4cce17fe1..7de5e0f76b 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); |