luci2: add AbstractWidget.appendTo() to support appending widgets to a container
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Oct 2013 19:04:54 +0000 (19:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Oct 2013 19:04:54 +0000 (19:04 +0000)
luci2/htdocs/luci2/luci2.js

index 1b759754ed9c71bbf240eb77ee8a32845b82a3ac..291af572d31119ec0e318aa03a68220b420ff3bd 100644 (file)
@@ -2339,6 +2339,10 @@ function LuCI2()
 
                insertInto: function(id) {
                        return $(id).empty().append(this.render());
+               },
+
+               appendTo: function(id) {
+                       return $(id).append(this.render());
                }
        });