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