mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Fixed: Forgot to include some js files in the last commit
This commit is contained in:
parent
accf8a9efa
commit
43446ee3d0
2 changed files with 14 additions and 4 deletions
|
@ -7,7 +7,6 @@ var AddFromListCollection = require('./List/AddFromListCollection');
|
||||||
var SearchResultCollectionView = require('./SearchResultCollectionView');
|
var SearchResultCollectionView = require('./SearchResultCollectionView');
|
||||||
var DiscoverableListDropdownView = require("./DiscoverableListDropdownView");
|
var DiscoverableListDropdownView = require("./DiscoverableListDropdownView");
|
||||||
var DiscoverableListCollection = require("./DiscoverableListCollection");
|
var DiscoverableListCollection = require("./DiscoverableListCollection");
|
||||||
var DiscoverableListCollectionView = require("./DiscoverableListCollectionView");
|
|
||||||
var DiscoverMoviesCollection = require("./DiscoverMoviesCollection");
|
var DiscoverMoviesCollection = require("./DiscoverMoviesCollection");
|
||||||
var EmptyView = require('./EmptyView');
|
var EmptyView = require('./EmptyView');
|
||||||
var NotFoundView = require('./NotFoundView');
|
var NotFoundView = require('./NotFoundView');
|
||||||
|
@ -72,9 +71,9 @@ module.exports = Marionette.Layout.extend({
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
this.listenTo(DiscoverableListCollection, 'sync', this._showListDropdown);
|
this.listenTo(DiscoverableListCollection, 'sync', this._showListDropdown);
|
||||||
this.listsDropdown = new DiscoverableListCollectionView({
|
/*this.listsDropdown = new DiscoverableListCollectionView({
|
||||||
collection : DiscoverableListCollection
|
collection : DiscoverableListCollection
|
||||||
})
|
})*/
|
||||||
|
|
||||||
this.throttledSearch = _.debounce(this.search, 1000, { trailing : true }).bind(this);
|
this.throttledSearch = _.debounce(this.search, 1000, { trailing : true }).bind(this);
|
||||||
|
|
||||||
|
|
11
src/UI/AddMovies/DiscoverableListCollection.js
Normal file
11
src/UI/AddMovies/DiscoverableListCollection.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
var Backbone = require('backbone');
|
||||||
|
var NetImportModel = require('../Settings/NetImport/NetImportModel');
|
||||||
|
var _ = require('underscore');
|
||||||
|
|
||||||
|
var DiscoverableCollection = Backbone.Collection.extend({
|
||||||
|
url : window.NzbDrone.ApiRoot + '/movies/discover/lists',
|
||||||
|
model : NetImportModel,
|
||||||
|
});
|
||||||
|
var collection = new DiscoverableCollection();
|
||||||
|
collection.fetch();
|
||||||
|
module.exports = collection;
|
Loading…
Add table
Add a link
Reference in a new issue