//small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9094 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -277,7 +277,6 @@ $(document).ready( function() {
|
||||
}).result(function(event, item)
|
||||
{
|
||||
parent_ids = getParentCategoriesIdAndOpen(item[1]);
|
||||
intervalCheck = setInterval(checkCategory, 10);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -311,6 +310,7 @@ function openParentCategories()
|
||||
// delete interval value
|
||||
interval = null;
|
||||
readyToExpand = false;
|
||||
intervalCheck = setInterval(checkCategory, 10);
|
||||
}
|
||||
|
||||
if (readyToExpand)
|
||||
@@ -324,11 +324,15 @@ function openParentCategories()
|
||||
|
||||
function checkCategory()
|
||||
{
|
||||
if ($('li#'+category_to_check+' input[type=checkbox]').attr('checked') == 'checked')
|
||||
if ($('li#'+category_to_check+' > input[type=checkbox]').is('checked'))
|
||||
{
|
||||
console.log('titi');
|
||||
clearInterval(intervalCheck);
|
||||
intervalCheck = null;
|
||||
}
|
||||
else
|
||||
$('li#'+category_to_check+' input[type=checkbox]').attr('checked', 'checked');
|
||||
{
|
||||
$('li#'+category_to_check+' > input[type=checkbox]').attr('checked', 'checked');
|
||||
updateNbSubCategorySelected($('li#'+category_to_check+' input[type=checkbox]'), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user