1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-27 17:54:34 -04:00

needed to pass the filterType, received the filterType and handle

the filterType
This commit is contained in:
geogolem
2017-03-02 15:14:43 -05:00
parent b492fece6c
commit ff11388009
5 changed files with 32 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ var Marionette = require('marionette');
var Backgrid = require('backgrid');
var MoviesCollection = require('../../Movies/MoviesCollection');
var SelectRow = require('./SelectMovieRow');
var FullMovieCollection = require('../../Movies/FullMovieCollection');
module.exports = Marionette.Layout.extend({
template : 'ManualImport/Movie/SelectMovieLayoutTemplate',
@@ -32,7 +33,7 @@ module.exports = Marionette.Layout.extend({
],
initialize : function() {
this.movieCollection = MoviesCollection.clone();
this.movieCollection = FullMovieCollection;
this._setModelCollection();
this.listenTo(this.movieCollection, 'row:selected', this._onSelected);

View File

@@ -67,12 +67,14 @@ module.exports = function() {
_.extend(this.prototype.state, {
filterKey : null,
filterValue : null
filterValue : null,
filterType : null
});
_.extend(this.prototype.queryParams, {
filterKey : 'filterKey',
filterValue : 'filterValue'
filterValue : 'filterValue',
filterType : 'filterType'
});
return this;