[+] BO : fixed bug on category tree view
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9996 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
cff850ed51
commit
9e7c542d8a
1 file changed
+5
-5
@@ -103,8 +103,8 @@ function closeChildrenCategories(element)
|
|||||||
if (arrayLevel[i] != undefined)
|
if (arrayLevel[i] != undefined)
|
||||||
for(j=0;j<arrayLevel[i].length;j++)
|
for(j=0;j<arrayLevel[i].length;j++)
|
||||||
{
|
{
|
||||||
$('li#'+arrayLevel[i][j]+'.collapsable').children('span.category_label').trigger('click');
|
$('#categories-treeview').find('li#'+arrayLevel[i][j]+'.collapsable').children('span.category_label').trigger('click');
|
||||||
$('li#'+arrayLevel[i][j]+'.expandable').children('ul').hide();
|
$('#categories-treeview').find('li#'+arrayLevel[i][j]+'.expandable').children('ul').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ function setCategoryToExpand()
|
|||||||
|
|
||||||
id = 0;
|
id = 0;
|
||||||
arrayCatToExpand = new Array();
|
arrayCatToExpand = new Array();
|
||||||
$('li.expandable:visible').each(function() {
|
$('#categories-treeview').find('li.expandable:visible').each(function() {
|
||||||
arrayCatToExpand.push($(this).attr('id'));
|
arrayCatToExpand.push($(this).attr('id'));
|
||||||
ret = true;
|
ret = true;
|
||||||
});
|
});
|
||||||
@@ -169,9 +169,9 @@ function openCategory()
|
|||||||
|
|
||||||
if (readyToExpand)
|
if (readyToExpand)
|
||||||
{
|
{
|
||||||
if ($('li#'+arrayCatToExpand[id]+'.hasChildren').length > 0)
|
if ($('#categories-treeview').find('li#'+arrayCatToExpand[id]+'.hasChildren').length > 0)
|
||||||
readyToExpand = false;
|
readyToExpand = false;
|
||||||
$('li#'+arrayCatToExpand[id]+'.expandable:visible span.category_label').trigger('click');
|
$('#categories-treeview').find('li#'+arrayCatToExpand[id]+'.expandable:visible span.category_label').trigger('click');
|
||||||
id++;
|
id++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user