33 lines
785 B
JavaScript
33 lines
785 B
JavaScript
|
'use strict;'
|
|||
|
/// <reference path="../../app.js" />
|
|||
|
/// <reference path="../SeriesCollection.js" />
|
|||
|
/// <reference path="SeriesItemView.js" />
|
|||
|
|
|||
|
NzbDrone.Series.IndexLayout = Backbone.Marionette.Layout.extend({
|
|||
|
template: 'Series/Index/IndexLayoutTemplate',
|
|||
|
route: 'Series/index',
|
|||
|
|
|||
|
ui: {
|
|||
|
edit: '.edit-series',
|
|||
|
delele: '.delete-series'
|
|||
|
},
|
|||
|
|
|||
|
regions: {
|
|||
|
main: '#series',
|
|||
|
},
|
|||
|
|
|||
|
collection: new NzbDrone.Series.SeriesCollection(),
|
|||
|
|
|||
|
initialize: function (options) {
|
|||
|
|
|||
|
},
|
|||
|
|
|||
|
onRender: function () {
|
|||
|
console.log('binding auto complete');
|
|||
|
|
|||
|
this.collection.fetch();
|
|||
|
//Show things
|
|||
|
|
|||
|
this.main.show(new NzbDrone.Series.Index.SeriesCollectionView({ collection: this.collection }));
|
|||
|
},
|
|||
|
});
|