1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-11 01:10:36 +02:00
Files
Sonarr/UI/Settings/Indexers/ItemView.js

30 lines
756 B
JavaScript
Raw Normal View History

2013-06-21 23:24:24 -07:00
'use strict';
2013-04-30 17:01:54 -07:00
2013-08-21 17:36:35 -07:00
define(
[
'app',
'marionette',
'Settings/Notifications/DeleteView',
'Mixins/AsModelBoundView',
'Mixins/AsValidatedView'
], function (App, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
2013-04-30 17:01:54 -07:00
2013-08-21 17:36:35 -07:00
var view = Marionette.ItemView.extend({
template: 'Settings/Indexers/ItemTemplate',
tagName : 'li',
2013-06-27 00:37:39 -07:00
2013-08-21 17:36:35 -07:00
events: {
'click .x-delete': '_deleteIndexer'
},
2013-06-27 00:37:39 -07:00
2013-08-21 17:36:35 -07:00
_deleteIndexer: function () {
var view = new DeleteView({ model: this.model});
App.modalRegion.show(view);
}
});
2013-06-18 18:02:23 -07:00
2013-08-21 17:36:35 -07:00
AsModelBoundView.call(view);
return AsValidatedView.call(view);
2013-08-21 17:36:35 -07:00
});