From b5ce7ecacd17bc583ecd36c14be4ab256dec71e8 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 6 Oct 2011 13:54:33 +0000 Subject: [PATCH] //small fix --- 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); } }