workaround to make TreeList work, find should really work here

This commit is contained in:
j 2011-12-29 15:04:13 +05:30
parent bfaea73f1f
commit 771d2be37b

View file

@ -181,7 +181,10 @@ Ox.TreeList = function(options, self) {
function toggleItem(item, expanded) {
var $img, pos;
item.expanded = expanded;
that.$element.find('.OxItem').each(function() {
//fixme why does
//that.$element.find('.OxItem').each(function() {
//only return one element?
$(that.$element).find('.OxItem').each(function() {
var $item = $(this);
if ($item.data('id') == item.id) {
$img = $item.find('.OxToggle');