From 4d7bf6f76a5d28056925243acf31bd7aefbbeb92 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 6 Oct 2011 13:54:33 +0000 Subject: [PATCH] //small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9102 b9a71923-0436-4b27-9f14-aed3839534dd --- js/admin-categories-tree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/admin-categories-tree.js b/js/admin-categories-tree.js index 391576092..0c181acf2 100755 --- a/js/admin-categories-tree.js +++ b/js/admin-categories-tree.js @@ -319,7 +319,7 @@ function openParentCategories() { if ($('li#'+arrayCatToExpand[id]+'.hasChildren').length > 0) readyToExpand = false; - $('li#'+arrayCatToExpand[id]+' span').trigger('click'); + $('li#'+arrayCatToExpand[id]+'.expandable span').trigger('click'); id++; } } @@ -334,5 +334,6 @@ function checkCategory() else { $('li#'+category_to_check+' > input[type=checkbox]').attr('checked', 'checked'); + updateNbSubCategorySelected($('li#'+category_to_check+' > input[type=checkbox]'), true); } }