//fixed bug autocomplete category tree

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9624 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2011-10-25 12:04:16 +00:00
parent cf176f57a0
commit c971fd21cc
+3
View File
@@ -261,6 +261,8 @@ function updateNbSubCategorySelected(category, add)
$(document).ready( function() { $(document).ready( function() {
var category_to_check; var category_to_check;
if ($('#search_cat').length)
{
$('#search_cat').autocomplete('ajax.php?searchCategory=1', { $('#search_cat').autocomplete('ajax.php?searchCategory=1', {
delay: 100, delay: 100,
minChars: 3, minChars: 3,
@@ -279,6 +281,7 @@ $(document).ready( function() {
{ {
parent_ids = getParentCategoriesIdAndOpen(item[1]); parent_ids = getParentCategoriesIdAndOpen(item[1]);
}); });
}
}); });
function getParentCategoriesIdAndOpen(id_category) function getParentCategoriesIdAndOpen(id_category)