1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Toggle cell use spinForPromise

This commit is contained in:
Mark McDowall 2015-03-26 08:03:31 -07:00
parent 755a42ea45
commit adfaa00ce1

View File

@ -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();
});
},