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