1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-21 01:49:57 +02:00
Sonarr/UI/Settings/Quality/Profile/DeleteView.js

25 lines
591 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'app',
'marionette'
], function (App, Marionette) {
return Marionette.ItemView.extend({
2013-06-25 03:41:32 +03:00
template: 'Settings/Quality/Profile/DeleteTemplate',
events: {
'click .x-confirm-delete': '_removeProfile'
},
_removeProfile: function () {
this.model.destroy({
wait: true
}).done(function () {
2013-07-24 04:15:58 +03:00
App.vent.trigger(App.Commands.CloseModalCommand);
});
}
});
});