// add loading tab product

This commit is contained in:
lLefevre
2012-01-01 15:20:27 +00:00
parent bfcf3ddedc
commit e0e8229a0e
4 changed files with 11 additions and 5 deletions
+5
View File
@@ -220,6 +220,10 @@ function displayTabProductById(el, id, selected)
myurl = $(el).attr("href")+"&ajax=1";
// Used to check if the tab is already in the process of being loaded
$("#product-tab-content-"+id).addClass('loading');
if (selected)
$('#product-tab-content-wait').show();
$.ajax({
url : myurl,
async : true,
@@ -237,6 +241,7 @@ function displayTabProductById(el, id, selected)
complete : function(data)
{
$("#product-tab-content-"+id).removeClass('loading');
$('#product-tab-content-wait').hide();
}
});
}