// Deactivate ajax loading notification for product tabs loading
This commit is contained in:
@@ -256,6 +256,11 @@ function displayTabProductById(id, selected, index, stack)
|
|||||||
$("#product-tab-content-"+id).trigger('loaded');
|
$("#product-tab-content-"+id).trigger('loaded');
|
||||||
if (stack && stack[index + 1])
|
if (stack && stack[index + 1])
|
||||||
displayTabProductById(stack[index + 1], selected, index + 1, stack);
|
displayTabProductById(stack[index + 1], selected, index + 1, stack);
|
||||||
|
},
|
||||||
|
beforeSend : function(data)
|
||||||
|
{
|
||||||
|
// don't display the loading notification bar
|
||||||
|
clearTimeout(ajax_running_timeout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+10
@@ -1058,6 +1058,16 @@ function stripHTML(oldString)
|
|||||||
return newString;
|
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()
|
function showAjaxOverlay()
|
||||||
{
|
{
|
||||||
$('#ajax_running').slideDown('fast');
|
$('#ajax_running').slideDown('fast');
|
||||||
|
|||||||
Reference in New Issue
Block a user