Sonarr/src/UI/Activity/Blacklist/BlacklistActionsCell.js

21 lines
401 B
JavaScript
Raw Normal View History

2015-02-03 01:18:45 +00:00
var NzbDroneCell = require('../../Cells/NzbDroneCell');
2015-02-03 01:18:45 +00:00
module.exports = NzbDroneCell.extend({
className : 'blacklist-controls-cell',
2015-02-13 21:03:50 +00:00
events : {
2015-02-03 01:18:45 +00:00
'click' : '_delete'
},
2015-02-13 21:03:50 +00:00
render : function() {
2015-02-03 01:18:45 +00:00
this.$el.empty();
2015-02-21 02:20:31 +00:00
this.$el.html('<i class="icon-sonarr-delete"></i>');
2015-02-13 21:03:50 +00:00
2015-02-03 01:18:45 +00:00
return this;
},
2015-02-13 21:03:50 +00:00
_delete : function() {
2015-02-03 01:18:45 +00:00
this.model.destroy();
}
2015-02-13 21:03:50 +00:00
});