mirror of
https://github.com/Radarr/Radarr
synced 2024-12-29 11:25:26 +00:00
27fc51da48
added empty modal for episode info
30 lines
753 B
JavaScript
30 lines
753 B
JavaScript
'use strict';
|
|
define(['app', 'Series/SeriesModel'], function () {
|
|
|
|
NzbDrone.Series.Delete.DeleteSeriesView = Backbone.Marionette.ItemView.extend({
|
|
template : 'Series/Delete/DeleteSeriesTemplate',
|
|
|
|
events: {
|
|
'click .x-confirm-delete': 'removeSeries'
|
|
},
|
|
|
|
ui: {
|
|
deleteFiles: '.x-delete-files'
|
|
},
|
|
|
|
removeSeries: function () {
|
|
|
|
var deleteFiles = this.ui.deleteFiles.prop('checked');
|
|
|
|
this.model.destroy({
|
|
data : { 'deleteFiles': deleteFiles },
|
|
success: function (model) {
|
|
model.collection.remove(model);
|
|
}
|
|
});
|
|
|
|
NzbDrone.modalRegion.close();
|
|
|
|
}
|
|
});
|
|
});
|