luci-base: form.js: fix GridSection not using user-input name when add
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
This commit is contained in:
parent
6c7b1e156d
commit
fa15370f0e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue