sonarr-repo-only/UI/Settings/Indexers/IndexerLayout.js

29 lines
914 B
JavaScript
Raw Normal View History

"use strict";
define(
[
'marionette',
'Settings/Indexers/CollectionView',
2013-09-25 05:04:33 +00:00
'Settings/Indexers/Options/IndexerOptionsView'
], function (Marionette, CollectionView, OptionsView) {
return Marionette.Layout.extend({
2013-09-25 05:04:33 +00:00
template: 'Settings/Indexers/IndexerLayoutTemplate',
regions: {
indexersRegion : '#indexers-collection',
indexerOptions : '#indexer-options'
},
initialize: function (options) {
this.settings = options.settings;
this.indexersCollection = options.indexersCollection;
},
onShow: function () {
this.indexersRegion.show(new CollectionView({ collection: this.indexersCollection }));
this.indexerOptions.show(new OptionsView({ model: this.settings }));
}
});
});