mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed episode details, manual download will show check on success
This commit is contained in:
parent
207d9c256d
commit
0c12183b93
3 changed files with 15 additions and 8 deletions
|
@ -16,15 +16,21 @@ define(
|
|||
|
||||
var self = this;
|
||||
|
||||
this.$el.html('<i class =\'icon-spinner icon-spin\' />');
|
||||
this.model.save().always(function () {
|
||||
self.$el.html('<i class =\'icon-download-alt\' title=\'Add to download queue\' />');
|
||||
this.$el.html('<i class="icon-spinner icon-spin" />');
|
||||
var promise = this.model.save();
|
||||
|
||||
promise.done(function () {
|
||||
self.$el.html('<i class="icon-ok" title="Added to downloaded queue" />');
|
||||
});
|
||||
|
||||
promise.fail(function () {
|
||||
self.$el.html('<i class="icon-download-alt" title="Add to download queue" />');
|
||||
});
|
||||
},
|
||||
|
||||
render: function () {
|
||||
|
||||
this.$el.html('<i class =\'icon-download-alt\' title=\'Add to download queue\' />');
|
||||
this.$el.html('<i class="icon-download-alt" title="Add to download queue" />');
|
||||
return this;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue