mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Toogle cell shows spinner when clicked
This commit is contained in:
parent
1143547556
commit
b520554741
3 changed files with 17 additions and 6 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue