diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-22 19:04:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-22 19:04:54 +0000 |
commit | 8f89e46fcaec5cb1deb9e73b9f77b3b1cd0d8ad1 (patch) | |
tree | f8e35b1c28eeb6b62aa05d8fbefd09b646ba9946 /luci2 | |
parent | 7a90fe936ad1762406b08aea46b6686f71859df9 (diff) | |
download | luci2-ui-8f89e46fcaec5cb1deb9e73b9f77b3b1cd0d8ad1.tar.gz |
luci2: add AbstractWidget.appendTo() to support appending widgets to a container
Diffstat (limited to 'luci2')
-rw-r--r-- | luci2/htdocs/luci2/luci2.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 1b75975..291af57 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -2339,6 +2339,10 @@ function LuCI2() insertInto: function(id) { return $(id).empty().append(this.render()); + }, + + appendTo: function(id) { + return $(id).append(this.render()); } }); |