diff --git a/UI/Cells/ToggleCell.js b/UI/Cells/ToggleCell.js index f0337aa82..812dc79d5 100644 --- a/UI/Cells/ToggleCell.js +++ b/UI/Cells/ToggleCell.js @@ -14,11 +14,18 @@ define( _onClick: function () { + var self = this; + var name = this.column.get('name'); this.model.set(name, !this.model.get(name)); - this.render(); - this.model.save(); + this.$('i').addClass('icon-spinner icon-spin'); + + var promise = this.model.save(); + + promise.always(function (){ + self.render(); + }); }, render: function () { diff --git a/UI/Series/Details/SeasonLayoutTemplate.html b/UI/Series/Details/SeasonLayoutTemplate.html index 4522cc268..c4b59fe00 100644 --- a/UI/Series/Details/SeasonLayoutTemplate.html +++ b/UI/Series/Details/SeasonLayoutTemplate.html @@ -1,4 +1,4 @@