You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/UI/Settings/Indexers/ItemView.js

30 lines
756 B

'use strict';
11 years ago
define(
[
'app',
'marionette',
'Settings/Notifications/DeleteView',
'Mixins/AsModelBoundView',
'Mixins/AsValidatedView'
], function (App, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
11 years ago
var view = Marionette.ItemView.extend({
template: 'Settings/Indexers/ItemTemplate',
tagName : 'li',
11 years ago
events: {
'click .x-delete': '_deleteIndexer'
},
11 years ago
_deleteIndexer: function () {
var view = new DeleteView({ model: this.model});
App.modalRegion.show(view);
}
});
11 years ago
AsModelBoundView.call(view);
return AsValidatedView.call(view);
11 years ago
});