mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-21 01:49:57 +02:00
30 lines
756 B
JavaScript
30 lines
756 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette',
|
|
'Settings/Notifications/DeleteView',
|
|
'Mixins/AsModelBoundView',
|
|
'Mixins/AsValidatedView'
|
|
], function (App, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
|
|
|
|
var view = Marionette.ItemView.extend({
|
|
template: 'Settings/Indexers/ItemTemplate',
|
|
tagName : 'li',
|
|
|
|
events: {
|
|
'click .x-delete': '_deleteIndexer'
|
|
},
|
|
|
|
_deleteIndexer: function () {
|
|
var view = new DeleteView({ model: this.model});
|
|
App.modalRegion.show(view);
|
|
}
|
|
});
|
|
|
|
AsModelBoundView.call(view);
|
|
return AsValidatedView.call(view);
|
|
|
|
});
|