Fix #575
This commit is contained in:
parent
aedd0df228
commit
5a2aa396fe
|
@ -711,7 +711,7 @@ Callbacks = {
|
||||||
|
|
||||||
queueFail: function (data) {
|
queueFail: function (data) {
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
stopQueueSpinner(id);
|
stopQueueSpinner(data);
|
||||||
}
|
}
|
||||||
queueMessage(data, "alert-danger");
|
queueMessage(data, "alert-danger");
|
||||||
},
|
},
|
||||||
|
|
|
@ -3094,7 +3094,8 @@ function startQueueSpinner(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopQueueSpinner(data) {
|
function stopQueueSpinner(data) {
|
||||||
var shouldRemove = (typeof data === 'object' &&
|
var shouldRemove = (data !== null &&
|
||||||
|
typeof data === 'object' &&
|
||||||
$("#queueprogress").data("queue-id") === data.id);
|
$("#queueprogress").data("queue-id") === data.id);
|
||||||
shouldRemove = shouldRemove || data === null;
|
shouldRemove = shouldRemove || data === null;
|
||||||
shouldRemove = shouldRemove || $("#queueprogress").data("queue-id") === "$any";
|
shouldRemove = shouldRemove || $("#queueprogress").data("queue-id") === "$any";
|
||||||
|
|
Loading…
Reference in a new issue