1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-15 01:25:05 +02:00
Files
Sonarr/UI/Settings/Indexers/EditView.js

27 lines
607 B
JavaScript
Raw Normal View History

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