2013-06-22 06:24:24 +00:00
|
|
|
|
'use strict';
|
2013-05-28 00:19:07 +00:00
|
|
|
|
|
|
|
|
|
define([
|
|
|
|
|
'app',
|
2013-06-19 01:02:23 +00:00
|
|
|
|
'marionette',
|
|
|
|
|
'Mixins/AsModelBoundView'
|
2013-06-19 04:27:41 +00:00
|
|
|
|
], function (App, Marionette, AsModelBoundView) {
|
2013-05-28 00:19:07 +00:00
|
|
|
|
|
2013-06-19 01:02:23 +00:00
|
|
|
|
var view = Marionette.ItemView.extend({
|
|
|
|
|
template: 'Settings/Indexers/EditTemplate',
|
2013-05-28 00:19:07 +00:00
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
|
'click .x-save': 'save'
|
|
|
|
|
},
|
|
|
|
|
|
2013-05-29 00:44:29 +00:00
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.indexerCollection = options.indexerCollection;
|
2013-05-28 00:19:07 +00:00
|
|
|
|
},
|
|
|
|
|
|
2013-05-29 00:44:29 +00:00
|
|
|
|
save: function () {
|
2013-06-19 04:27:41 +00:00
|
|
|
|
this.model.saveSettings();
|
2013-05-28 00:19:07 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
2013-06-19 01:02:23 +00:00
|
|
|
|
|
|
|
|
|
return AsModelBoundView.call(view);
|
2013-05-28 00:19:07 +00:00
|
|
|
|
});
|