mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 10:19:41 +00:00
28de886bb1
fixed modals
24 lines
571 B
JavaScript
24 lines
571 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette'
|
|
], function (App, Marionette) {
|
|
|
|
return Marionette.ItemView.extend({
|
|
template: 'Settings/Quality/Profile/DeleteTemplate',
|
|
|
|
events: {
|
|
'click .x-confirm-delete': '_removeProfile'
|
|
},
|
|
|
|
_removeProfile: function () {
|
|
|
|
this.model.destroy({
|
|
wait: true
|
|
}).done(function () {
|
|
App.modalRegion.closeModal();
|
|
});
|
|
}
|
|
});
|
|
});
|