1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-11 01:10:36 +02:00
Files
Sonarr/UI/Release/DownloadReportCell.js

34 lines
728 B
JavaScript
Raw Normal View History

2013-06-21 23:24:24 -07:00
'use strict';
2013-06-14 22:28:35 -07:00
define(['app','backgrid'], function () {
NzbDrone.Release.DownloadReportCell = Backgrid.Cell.extend({
2013-06-21 23:24:24 -07:00
className: 'download-report-cell',
events: {
'click': '_onClick'
},
_onClick: function () {
var self = this;
2013-06-22 08:58:16 -07:00
this.$el.html('<i class =\'icon-spinner icon-spin\' />');
this.model.save()
.always(function () {
2013-06-22 08:58:16 -07:00
self.$el.html('<i class =\'icon-download-alt\' />');
});
},
render: function () {
2013-06-22 08:58:16 -07:00
this.$el.html('<i class =\'icon-download-alt\' />');
return this;
}
});
return NzbDrone.Release.DownloadReportCell;
});