Don't show "add your first movie" when searching. fix #937

This commit is contained in:
Ruud
2012-10-21 12:11:37 +02:00
parent 5bda44d419
commit fbeadb8d9e
@@ -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);