1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 01:27:00 +00:00
Lidarr/UI/Settings/Indexers/EditView.js

27 lines
607 B
JavaScript
Raw Normal View History

'use strict';
2013-05-28 00:19:07 +00:00
define(
[
'marionette',
'Mixins/AsModelBoundView'
], function (Marionette, AsModelBoundView) {
2013-05-28 00:19:07 +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-28 00:19:07 +00:00
initialize: function (options) {
this.indexerCollection = options.indexerCollection;
},
2013-05-28 00:19:07 +00:00
save: function () {
this.model.saveSettings();
}
});
2013-06-19 01:02:23 +00:00
return AsModelBoundView.call(view);
});