diff --git a/admin-dev/themes/template/products/associations.tpl b/admin-dev/themes/template/products/associations.tpl index 799f872fe..7edb45ec6 100644 --- a/admin-dev/themes/template/products/associations.tpl +++ b/admin-dev/themes/template/products/associations.tpl @@ -25,13 +25,14 @@ *} diff --git a/js/admin-categories-tree.js b/js/admin-categories-tree.js index dbf01d807..7254ab2ac 100755 --- a/js/admin-categories-tree.js +++ b/js/admin-categories-tree.js @@ -260,7 +260,8 @@ function updateNbSubCategorySelected(category, add) updateNbSubCategorySelected(currentSpan.parent().children('input'), add); } -$(document).ready( function() { +function searchCategory() +{ var category_to_check; if ($('#search_cat').length) { @@ -283,7 +284,7 @@ $(document).ready( function() { parent_ids = getParentCategoriesIdAndOpen(item[1]); }); } -}); +} function getParentCategoriesIdAndOpen(id_category) {