From: Jo-Philipp Wich Date: Tue, 22 Oct 2013 19:04:54 +0000 (+0000) Subject: luci2: add AbstractWidget.appendTo() to support appending widgets to a container X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8f89e46fcaec5cb1deb9e73b9f77b3b1cd0d8ad1;p=project%2Fluci2%2Fui.git luci2: add AbstractWidget.appendTo() to support appending widgets to a container --- 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()); } });