// add loading tab product

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11960 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-01-01 15:20:27 +00:00
parent 111882b8ac
commit 3ce9a8705c
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();
}
});
}