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 1b75975..291af57 100644 (file)
@@ -2339,6 +2339,10 @@ function LuCI2()
 
                insertInto: function(id) {
                        return $(id).empty().append(this.render());
 
                insertInto: function(id) {
                        return $(id).empty().append(this.render());
+               },
+
+               appendTo: function(id) {
+                       return $(id).append(this.render());
                }
        });
 
                }
        });