1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-14 23:13:24 +01:00
Radarr/UI/Series/Delete/DeleteSeriesView.js
Keivan Beigi 28de886bb1 fixed less prefixer path
fixed modals
2013-06-26 16:45:05 -07:00

32 lines
773 B
JavaScript

'use strict';
define(
[
'app',
'marionette'
], function (App, Marionette) {
return 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 },
wait: true
}).done(function () {
App.modalRegion.closeModal();
});
}
});
});