Added: Manual Import now adds year after movie title for filtering. This should help finding movies such as IT.

By searching e.g. It 2017, movies with short titles should be easily filterable now. Also displays more results (50 instead of 20)
pull/2/head
Leonardo Galli 7 years ago
parent 5f8aeeac17
commit d5832a6a07

@ -87,7 +87,7 @@ module.exports = Marionette.Layout.extend({
_filter : function (term) {
this.movieCollection.reset(this.fullMovieCollection.filter(function(model){
return (model.get("title") + " ("+model.get("year")+")").toLowerCase().indexOf(term.toLowerCase()) != -1;
return (model.get("title") + " "+model.get("year")+"").toLowerCase().indexOf(term.toLowerCase()) != -1;
}).slice(0, 50));
this._setModelCollection();

Loading…
Cancel
Save