mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
💄 setup : update progress bar if error occurs
This commit is contained in:
@@ -8,6 +8,9 @@ function WizardAsyncAction(sActionCode, oParams, OnErrorFunction)
|
||||
|
||||
var ErrorFn = OnErrorFunction;
|
||||
$(document).ajaxError(function(event, request, settings) {
|
||||
// update progressbar
|
||||
// not calling a dedicated plugin method as it is overdated and will be replaced soon
|
||||
$("#progress .progress").css("background-image", "none");
|
||||
$('#async_action').html('<pre>'+request.responseText+'</pre>').show();
|
||||
if (ErrorFn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user