mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Series/Index started in backbone
This commit is contained in:
33
NzbDrone.Web/_backboneApp/Series/Index/IndexLayout.js
Normal file
33
NzbDrone.Web/_backboneApp/Series/Index/IndexLayout.js
Normal file
@@ -0,0 +1,33 @@
|
||||
'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 }));
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user