summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-04 21:34:12 +0200
committerJo-Philipp Wich <jo@mein.io>2020-05-04 21:34:12 +0200
commitf0a0d28fdd22b7904ea9a4efb53a7b791dc6dead (patch)
tree02231b5704e522c9eb9679f7fdc70ba6de09db6a
parent915e446c07ca5c7338dd7b8b5805232449c08c19 (diff)
luci-base: form.js: forward section ID in CBISectionValue methods
This is useful for custom subclasses that want to perform conditional rendering of contents, depending on the parent section ID. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 8525937f0..c86f75785 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -4097,22 +4097,22 @@ var CBISectionValue = CBIValue.extend(/** @lends LuCI.form.SectionValue.prototyp
/** @override */
load: function(section_id) {
- return this.subsection.load();
+ return this.subsection.load(section_id);
},
/** @override */
parse: function(section_id) {
- return this.subsection.parse();
+ return this.subsection.parse(section_id);
},
/** @private */
renderWidget: function(section_id, option_index, cfgvalue) {
- return this.subsection.render();
+ return this.subsection.render(section_id);
},
/** @private */
checkDepends: function(section_id) {
- this.subsection.checkDepends();
+ this.subsection.checkDepends(section_id);
return CBIValue.prototype.checkDepends.apply(this, [ section_id ]);
},