1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-29 03:05:49 +00:00
Sonarr/UI/Settings/Quality/Profile/DeleteView.js

25 lines
571 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'app',
'marionette'
], function (App, Marionette) {
return Marionette.ItemView.extend({
2013-06-25 00:41:32 +00:00
template: 'Settings/Quality/Profile/DeleteTemplate',
events: {
'click .x-confirm-delete': '_removeProfile'
},
_removeProfile: function () {
this.model.destroy({
wait: true
}).done(function () {
2013-06-26 23:45:05 +00:00
App.modalRegion.closeModal();
});
}
});
});