From 8f89e46fcaec5cb1deb9e73b9f77b3b1cd0d8ad1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 22 Oct 2013 19:04:54 +0000 Subject: [PATCH 1/1] luci2: add AbstractWidget.appendTo() to support appending widgets to a container --- luci2/htdocs/luci2/luci2.js | 4 ++++ 1 file changed, 4 insertions(+) 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()); } }); -- 2.11.0