// Deactivate ajax loading notification for product tabs loading

This commit is contained in:
tDidierjean
2012-01-10 09:36:53 +00:00
parent 129ebbc91d
commit ae1925956e
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -256,6 +256,11 @@ function displayTabProductById(id, selected, index, stack)
$("#product-tab-content-"+id).trigger('loaded');
if (stack && stack[index + 1])
displayTabProductById(stack[index + 1], selected, index + 1, stack);
},
beforeSend : function(data)
{
// don't display the loading notification bar
clearTimeout(ajax_running_timeout);
}
});
}
+10
View File
@@ -1058,6 +1058,16 @@ function stripHTML(oldString)
return newString;
}
/**
* Display a loading bar while an ajax call is ongoing.
*
* To prevent the loading bar display for a specific ajax call, set the beforeSend event in your ajax declaration:
* beforeSend : function(data)
{
// don't display the loading notification bar
clearTimeout(ajax_running_timeout);
}
*/
function showAjaxOverlay()
{
$('#ajax_running').slideDown('fast');