mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
28 lines
554 B
JavaScript
28 lines
554 B
JavaScript
|
"use strict";
|
||
|
NzbDrone.Release.DownloadReportCell = 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" />');
|
||
|
});
|
||
|
},
|
||
|
|
||
|
render: function () {
|
||
|
|
||
|
this.$el.html('<i class ="icon-download-alt" />');
|
||
|
return this;
|
||
|
|
||
|
}
|
||
|
});
|