mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
27 lines
607 B
JavaScript
27 lines
607 B
JavaScript
'use strict';
|
||
|
||
define(
|
||
[
|
||
'marionette',
|
||
'Mixins/AsModelBoundView'
|
||
], function (Marionette, AsModelBoundView) {
|
||
|
||
var view = Marionette.ItemView.extend({
|
||
template: 'Settings/Indexers/EditTemplate',
|
||
|
||
events: {
|
||
'click .x-save': 'save'
|
||
},
|
||
|
||
initialize: function (options) {
|
||
this.indexerCollection = options.indexerCollection;
|
||
},
|
||
|
||
save: function () {
|
||
this.model.saveSettings();
|
||
}
|
||
});
|
||
|
||
return AsModelBoundView.call(view);
|
||
});
|