workaround to make TreeList work, find should really work here
This commit is contained in:
parent
bfaea73f1f
commit
771d2be37b
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,10 @@ Ox.TreeList = function(options, self) {
|
||||||
function toggleItem(item, expanded) {
|
function toggleItem(item, expanded) {
|
||||||
var $img, pos;
|
var $img, pos;
|
||||||
item.expanded = expanded;
|
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);
|
var $item = $(this);
|
||||||
if ($item.data('id') == item.id) {
|
if ($item.data('id') == item.id) {
|
||||||
$img = $item.find('.OxToggle');
|
$img = $item.find('.OxToggle');
|
||||||
|
|
Loading…
Reference in a new issue