From c8342112c8aabf229ddc9826e882a68ce342f7f3 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Tue, 20 Dec 2011 15:13:26 +0000 Subject: [PATCH] // fix category autocompletion binding git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11417 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/products/associations.tpl | 3 ++- js/admin-categories-tree.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) {