From 7b3a1409d59be095299520c0f275541bccba6b3a Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 30 Apr 2013 10:32:22 +0200 Subject: [PATCH] Force thumbnail view on home --- couchpotato/core/plugins/movie/static/list.js | 5 +++-- couchpotato/static/scripts/page/home.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index 46819439..e1cb0d80 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -8,7 +8,8 @@ var MovieList = new Class({ load_more: true, loader: true, menu: [], - add_new: false + add_new: false, + force_view: false }, movies: [], @@ -43,7 +44,7 @@ var MovieList = new Class({ }) : null ); - if($(window).getSize().x < 480) + if($(window).getSize().x < 480 && !self.options.force_view) self.changeView('list'); else self.changeView(self.getSavedView() || self.options.view || 'details'); diff --git a/couchpotato/static/scripts/page/home.js b/couchpotato/static/scripts/page/home.js index 1839e3b0..e1fe63e0 100644 --- a/couchpotato/static/scripts/page/home.js +++ b/couchpotato/static/scripts/page/home.js @@ -59,6 +59,7 @@ Page.Home = new Class({ 'actions': [MA.IMDB, MA.Refresh], 'load_more': false, 'view': 'thumbs', + 'force_view': true, 'api_call': 'dashboard.soon' });