projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c7b1e1
)
luci-base: form.js: fix GridSection not using user-input name when add
author
Richard Yu
<
[email protected]
>
Sun, 3 Nov 2019 16:19:33 +0000
(
00:19
+0800)
committer
Richard Yu
<
[email protected]
>
Sun, 3 Nov 2019 16:19:33 +0000
(
00:19
+0800)
Signed-off-by: Richard Yu <
[email protected]
>
modules/luci-base/htdocs/luci-static/resources/form.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/form.js
b/modules/luci-base/htdocs/luci-static/resources/form.js
index f4cce17fe1409a532d5d7075f0cc492cd0817eff..7de5e0f76b4c9d2aa3f43190f47c38a23a30cf12 100644
(file)
--- 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);