mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 11:05:44 +00:00
32 lines
779 B
JavaScript
32 lines
779 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'backgrid'
|
|
], function (Backgrid) {
|
|
return Backgrid.Cell.extend({
|
|
|
|
className: 'download-report-cell',
|
|
|
|
events: {
|
|
'click': '_onClick'
|
|
},
|
|
|
|
_onClick: function () {
|
|
|
|
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\' />');
|
|
});
|
|
},
|
|
|
|
render: function () {
|
|
|
|
this.$el.html('<i class =\'icon-download-alt\' title=\'Add to download queue\' />');
|
|
return this;
|
|
|
|
}
|
|
});
|
|
});
|