mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
UI Cleanup - Updated Cells subtree.
This commit is contained in:
@@ -3,17 +3,24 @@ var Backgrid = require('backgrid');
|
||||
|
||||
module.exports = Backgrid.Cell.extend({
|
||||
className : 'delete-episode-file-cell',
|
||||
events : {"click" : '_onClick'},
|
||||
render : function(){
|
||||
|
||||
events : {
|
||||
'click' : '_onClick'
|
||||
},
|
||||
|
||||
render : function() {
|
||||
this.$el.empty();
|
||||
this.$el.html('<i class="icon-nd-delete"></i>');
|
||||
|
||||
return this;
|
||||
},
|
||||
_onClick : function(){
|
||||
|
||||
_onClick : function() {
|
||||
var self = this;
|
||||
if(window.confirm('Are you sure you want to delete \'{0}\' from disk?'.format(this.model.get('path')))) {
|
||||
this.model.destroy().done(function(){
|
||||
vent.trigger(vent.Events.EpisodeFileDeleted, {episodeFile : self.model});
|
||||
|
||||
if (window.confirm('Are you sure you want to delete \'{0}\' from disk?'.format(this.model.get('path')))) {
|
||||
this.model.destroy().done(function() {
|
||||
vent.trigger(vent.Events.EpisodeFileDeleted, { episodeFile : self.model });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user