1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 10:07:10 +00:00
Lidarr/UI/Release/DownloadReportCell.js
kay.one 769331d45d updated jshint to 2.1.3
single quotes
2013-06-21 23:24:24 -07:00

33 lines
722 B
JavaScript

'use strict';
define(['app','backgrid'], function () {
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;
}
});
return NzbDrone.Release.DownloadReportCell;
});