mirror of https://github.com/lidarr/Lidarr
Fixed: Force import won't trigger icon change on multiple items
This commit is contained in:
parent
f4573545cd
commit
a7a6a08807
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
var vent = require('../../vent');
|
var vent = require('../../vent');
|
||||||
var Marionette = require('marionette');
|
|
||||||
var TemplatedCell = require('../../Cells/TemplatedCell');
|
var TemplatedCell = require('../../Cells/TemplatedCell');
|
||||||
var RemoveFromQueueView = require('./RemoveFromQueueView');
|
var RemoveFromQueueView = require('./RemoveFromQueueView');
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ module.exports = TemplatedCell.extend({
|
||||||
data : JSON.stringify(this.model.toJSON())
|
data : JSON.stringify(this.model.toJSON())
|
||||||
});
|
});
|
||||||
|
|
||||||
$(this.ui.import).spinForPromise(promise);
|
this.$(this.ui.import).spinForPromise(promise);
|
||||||
|
|
||||||
promise.success(function() {
|
promise.success(function() {
|
||||||
//find models that have the same series id and episode ids and remove them
|
//find models that have the same series id and episode ids and remove them
|
||||||
|
@ -57,7 +56,7 @@ module.exports = TemplatedCell.extend({
|
||||||
data : JSON.stringify(this.model.toJSON())
|
data : JSON.stringify(this.model.toJSON())
|
||||||
});
|
});
|
||||||
|
|
||||||
$(this.ui.grab).spinForPromise(promise);
|
this.$(this.ui.grab).spinForPromise(promise);
|
||||||
|
|
||||||
promise.success(function() {
|
promise.success(function() {
|
||||||
//find models that have the same series id and episode ids and remove them
|
//find models that have the same series id and episode ids and remove them
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = function() {
|
||||||
} else {
|
} else {
|
||||||
icon.attr('data-idle-icon', iconClass);
|
icon.attr('data-idle-icon', iconClass);
|
||||||
icon.removeClass(iconClass);
|
icon.removeClass(iconClass);
|
||||||
icon.addClass('icon-sonarr-spinner');
|
icon.addClass('fa-spin icon-sonarr-spinner');
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue