1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Settings/Indexers/ItemView.js

27 lines
595 B
JavaScript
Raw Normal View History

2013-06-22 09:24:24 +03:00
'use strict';
2013-05-01 03:01:54 +03:00
2013-06-27 10:37:39 +03:00
define([
'app',
'marionette',
'Settings/Notifications/DeleteView',
'Mixins/AsModelBoundView'],
function (App, Marionette, DeleteView, AsModelBoundView) {
2013-05-01 03:01:54 +03:00
var view = Marionette.ItemView.extend({
2013-06-19 04:02:23 +03:00
template: 'Settings/Indexers/ItemTemplate',
2013-06-27 10:37:39 +03:00
tagName : 'li',
events: {
'click .x-delete': '_deleteIndexer'
},
_deleteIndexer: function () {
var view = new DeleteView({ model: this.model});
App.modalRegion.show(view);
}
2013-05-01 03:01:54 +03:00
});
2013-06-19 04:02:23 +03:00
return AsModelBoundView.call(view);
2013-05-01 03:01:54 +03:00
});