This commit is contained in:
calzoneman 2016-05-25 17:39:22 -07:00
parent aedd0df228
commit 5a2aa396fe
2 changed files with 3 additions and 2 deletions

View File

@ -711,7 +711,7 @@ Callbacks = {
queueFail: function (data) {
if (data.id) {
stopQueueSpinner(id);
stopQueueSpinner(data);
}
queueMessage(data, "alert-danger");
},

View File

@ -3094,7 +3094,8 @@ function startQueueSpinner(data) {
}
function stopQueueSpinner(data) {
var shouldRemove = (typeof data === 'object' &&
var shouldRemove = (data !== null &&
typeof data === 'object' &&
$("#queueprogress").data("queue-id") === data.id);
shouldRemove = shouldRemove || data === null;
shouldRemove = shouldRemove || $("#queueprogress").data("queue-id") === "$any";