From 29cb34551c537b0ae508c361f22f492182e0514e Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 17 Mar 2013 14:42:24 +0100 Subject: [PATCH] Hide title and description by default --- couchpotato/core/plugins/movie/static/list.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index 84f60d52..6ff35e24 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -27,10 +27,12 @@ var MovieList = new Class({ self.el = new Element('div.movies').adopt( self.title = self.options.title ? new Element('h2', { - 'text': self.options.title + 'text': self.options.title, + 'styles': {'display': 'none'} }) : null, self.description = self.options.description ? new Element('div.description', { - 'html': self.options.description + 'html': self.options.description, + 'styles': {'display': 'none'} }) : null, self.movie_list = new Element('div'), self.load_more = self.options.load_more ? new Element('a.load_more', { @@ -512,6 +514,9 @@ var MovieList = new Class({ if(self.title) self.title[is_empty ? 'hide' : 'show']() + if(self.description) + self.description[is_empty ? 'hide' : 'show']() + if(is_empty && self.options.on_empty_element){ self.el.grab(self.options.on_empty_element);