Make new dependencies to be rendered in the correct position of the DOM.

FEA: ItEr75S08MigrationZK5
This commit is contained in:
Jacobo Aragunde Pérez 2011-09-27 21:04:00 +02:00
parent 949afcbeda
commit aaad249a72

View file

@ -1,3 +1,12 @@
zk.$package("limitingresources");
limitingresources.LimitingDependencyList = zk.$extends(zk.Widget,{})
limitingresources.LimitingDependencyList = zk.$extends(zk.Widget,{
appendChild: function(ao,al) {
this.$supers('appendChild', arguments);
//by default, appenChild appends the child (the .dependency object) as
//a direct child of the LimitingDependencylist object, but we want to
//to be added inside div#listlimitingdependencies, so we move the
//dependency once it's created
jq('#'+ao.uuid).appendTo('#listlimitingdependencies');
}
})