[-] BO : fix bug #PSCFV-341 - ajax call could be made twice for the same product tab

This commit is contained in:
tDidierjean
2012-05-04 08:55:16 +00:00
parent c9de393e37
commit e1b304bf66
2 changed files with 12 additions and 8 deletions
@@ -148,15 +148,15 @@
$("#product-tab-content-"+currentId).hide();
}
if ($("#product-tab-content-"+id).hasClass('not-loaded') && !$("#product-tab-content-"+id).hasClass('loading'))
tabs_manager.display(id, true, 0, null);
else
{
// if the tab has not already been loaded, load it now
tabs_manager.display(id, true, 0, null);
tabs_manager.onLoad(id, function(){
$("#product-tab-content-"+id).show(0, function(){
$(this).trigger('displayed');
});
$("#link-"+id).addClass('selected');
}
});
var languages = new Array();
if (btn_name == "Combinations")