1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-23 02:05:27 +02:00
Sonarr/UI/Settings/Indexers/DeleteView.js

20 lines
526 B
JavaScript
Raw Normal View History

2013-06-27 10:37:39 +03: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 04:15:58 +03:00
App.vent.trigger(App.Commands.CloseModalCommand);
2013-06-27 10:37:39 +03:00
}
});
}
});
});