Browse Source

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

pull/992/merge
Ruud 13 years ago
parent
commit
fbeadb8d9e
  1. 3
      couchpotato/core/plugins/movie/static/list.js

3
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);

Loading…
Cancel
Save