From fbeadb8d9e7ef92bff2dbb5e6031525a391c0b0c Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 21 Oct 2012 12:11:37 +0200 Subject: [PATCH] Don't show "add your first movie" when searching. fix #937 --- couchpotato/core/plugins/movie/static/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index fcc446b..b4e4819 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -105,6 +105,7 @@ var MovieList = new Class({ self.createMovie(movie); }); + self.total_movies = total; self.setCounter(total); }, @@ -500,7 +501,7 @@ var MovieList = new Class({ checkIfEmpty: function(){ var self = this; - var is_empty = self.movies.length == 0; + var is_empty = self.movies.length == 0 && self.total_movies == 0; if(is_empty && self.options.on_empty_element){ self.el.grab(self.options.on_empty_element);