mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Toggle cell use spinForPromise
This commit is contained in:
parent
755a42ea45
commit
adfaa00ce1
1 changed files with 4 additions and 2 deletions
|
@ -16,9 +16,11 @@ module.exports = Backgrid.Cell.extend({
|
|||
var name = this.column.get('name');
|
||||
this.model.set(name, !this.model.get(name));
|
||||
|
||||
this.$('i').addClass('icon-sonarr-spinner fa-spin');
|
||||
var promise = this.model.save();
|
||||
|
||||
this.model.save().always(function() {
|
||||
this.$('i').spinForPromise(promise);
|
||||
|
||||
promise.always(function() {
|
||||
self.render();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue