diff options
| author | Jo-Philipp Wich | 2014-01-31 21:49:54 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2014-01-31 21:49:54 +0000 |
| commit | facf7e6d82dcaff660ceb2cbcd31eebbeb116a47 (patch) | |
| tree | 08b5d7710cb9d7d562503d8ec3a2b42cba578918 | |
| parent | db7efa7afe905478b473851b7e8407a538df8969 (diff) | |
| download | ui-facf7e6d82dcaff660ceb2cbcd31eebbeb116a47.tar.gz | |
luci2: implement LuCI2.cbi.SingleSection widget
| -rw-r--r-- | luci2/htdocs/luci2/luci2.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 13519e6..2d002cb 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -6853,6 +6853,16 @@ function LuCI2() } }); + this.cbi.SingleSection = this.cbi.NamedSection.extend({ + render: function() + { + this.instance = { }; + this.instance[this.uci_type] = { tabs: [ ] }; + + return this._render_section_body(this.uci_type, 0); + } + }); + this.cbi.DummySection = this.cbi.TypedSection.extend({ sections: function(cb) { |