//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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user