Sonarr/UI/Settings/Indexers/DeleteView.js

20 lines
526 B
JavaScript
Raw Normal View History

2013-06-27 07:37:39 +00:00
'use strict';
define(['app', 'marionette'], function (App, Marionette) {
return Marionette.ItemView.extend({
template: 'Settings/Notifications/DeleteTemplate',
events: {
'click .x-confirm-delete': '_removeIndexer'
},
_removeIndexer: function () {
this.model.destroy({
wait : true,
success: function () {
2013-07-24 01:15:58 +00:00
App.vent.trigger(App.Commands.CloseModalCommand);
2013-06-27 07:37:39 +00:00
}
});
}
});
});