// update call loading page in AdminProductsController

This commit is contained in:
lLefevre
2012-01-02 14:25:39 +00:00
parent 051e24afe1
commit 72382926d7
3 changed files with 31 additions and 21 deletions
+4 -3
View File
@@ -221,8 +221,8 @@ function displayTabProductById(el, id, selected)
// 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();
if (selected)
$('#product-tab-content-wait').show();
$.ajax({
url : myurl,
@@ -241,7 +241,8 @@ function displayTabProductById(el, id, selected)
complete : function(data)
{
$("#product-tab-content-"+id).removeClass('loading');
$('#product-tab-content-wait').hide();
if (selected)
$('#product-tab-content-wait').hide();
}
});
}