Delete added to indexers

This commit is contained in:
Mark McDowall 2013-06-27 00:37:39 -07:00
parent 1e61f501dc
commit 0ffb72bca1
7 changed files with 62 additions and 7 deletions

View file

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