projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: form.js: reuse JSONMap data provider in GridSection modals
[project/luci.git]
/
modules
/
luci-base
/
htdocs
/
luci-static
/
resources
/
form.js
diff --git
a/modules/luci-base/htdocs/luci-static/resources/form.js
b/modules/luci-base/htdocs/luci-static/resources/form.js
index 4edfc7e1352a1aed3ae70ba4779b5a3a3f26de28..317b49fdfeebde5f322184fe2bdd8e825fdb9bec 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/form.js
@@
-3213,10
+3213,13
@@
var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
var m;
var m;
- if (parent instanceof CBIJSONMap)
- m = new CBIJSONMap(parent.data.data, null, null);
- else
+ if (parent instanceof CBIJSONMap) {
+ m = new CBIJSONMap(null, null, null);
+ m.data = parent.data;
+ }
+ else {
m = new CBIMap(parent.config, null, null);
m = new CBIMap(parent.config, null, null);
+ }
var s = m.section(CBINamedSection, section_id, this.sectiontype);
var s = m.section(CBINamedSection, section_id, this.sectiontype);