Hide soon and late blocks on dashboard if their empty. fix #1778
This commit is contained in:
1 parent
226cf6fc38
commit
38886b28f7
2 files changed
+1
-5
No files matched your search
@@ -568,7 +568,7 @@ var MovieList = new Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.store(json.movies);
|
self.store(json.movies);
|
||||||
self.addMovies(json.movies, json.total);
|
self.addMovies(json.movies, json.total || json.movies.length);
|
||||||
if(self.scrollspy) {
|
if(self.scrollspy) {
|
||||||
self.load_more.set('text', 'load more movies');
|
self.load_more.set('text', 'load more movies');
|
||||||
self.scrollspy.start();
|
self.scrollspy.start();
|
||||||
|
|||||||
@@ -74,10 +74,6 @@ Page.Home = new Class({
|
|||||||
'limit': 12,
|
'limit': 12,
|
||||||
'title': 'Available soon',
|
'title': 'Available soon',
|
||||||
'description': 'These are being searched for and should be available soon as they will be released on DVD in the next few weeks.',
|
'description': 'These are being searched for and should be available soon as they will be released on DVD in the next few weeks.',
|
||||||
'on_empty_element': new Element('div').adopt(
|
|
||||||
new Element('h2', {'text': 'Available soon'}),
|
|
||||||
new Element('span', {'text': 'There are no movies available soon. Add some movies, so you have something to watch later.'})
|
|
||||||
),
|
|
||||||
'filter': {
|
'filter': {
|
||||||
'random': true
|
'random': true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user