[-] BO : fix #PSFV-826
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14653 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+15
-15
@@ -295,27 +295,27 @@ function getParentCategoriesIdAndOpen(id_category)
|
|||||||
{
|
{
|
||||||
category_to_check = id_category;
|
category_to_check = id_category;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: 'ajax.php',
|
url: 'ajax.php',
|
||||||
async: true,
|
async: true,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: 'ajax=true&getParentCategoriesId=true&id_category=' + id_category ,
|
data: 'ajax=true&getParentCategoriesId=true&id_category=' + id_category ,
|
||||||
success: function(jsonData) {
|
success: function(jsonData) {
|
||||||
for(var i= 0; i < jsonData.length; i++)
|
for(var i= 0; i < jsonData.length; i++)
|
||||||
if (jsonData[i].id_category != 1)
|
if (jsonData[i].id_category != 1)
|
||||||
arrayCatToExpand.push(jsonData[i].id_category);
|
arrayCatToExpand.push(jsonData[i].id_category);
|
||||||
readyToExpand = true;
|
readyToExpand = true;
|
||||||
interval = setInterval(openParentCategories, 10);
|
interval = setInterval(openParentCategories, 10);
|
||||||
},
|
intervalCheck = setInterval(checkCategory, 20);
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
},
|
||||||
jAlert("TECHNICAL ERROR: \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
}
|
jAlert("TECHNICAL ERROR: \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openParentCategories()
|
function openParentCategories()
|
||||||
{
|
{
|
||||||
intervalCheck = setInterval(checkCategory, 20);
|
|
||||||
if (id_tree >= arrayCatToExpand.length && !readyToExpand)
|
if (id_tree >= arrayCatToExpand.length && !readyToExpand)
|
||||||
{
|
{
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
|||||||
Reference in New Issue
Block a user