💄 setup : update progress bar if error occurs

This commit is contained in:
Pierre Goiffon
2019-07-12 11:14:53 +02:00
parent 95aa541293
commit 1313484ebe

View File

@@ -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)
{