Browse Source

Initial view state

pull/84/head
Ruud 13 years ago
parent
commit
457bf0958a
  1. 2
      couchpotato/core/plugins/movie/static/list.js
  2. 4
      couchpotato/core/plugins/movie/static/movie.js

2
couchpotato/core/plugins/movie/static/list.js

@ -342,7 +342,7 @@ var MovieList = new Class({
getSavedView: function(){
var self = this;
return Cookie.read(self.options.identifier+'_view') || 'thumb';
return Cookie.read(self.options.identifier+'_view') || 'thumbs';
},
search: function(){

4
couchpotato/core/plugins/movie/static/movie.js

@ -8,7 +8,7 @@ var Movie = new Class({
var self = this;
self.data = data;
self.view = options.view || 'thumb';
self.view = options.view || 'thumbs';
self.profile = Quality.getProfile(data.profile_id) || {};
self.parent(self, options);
@ -120,7 +120,7 @@ var Movie = new Class({
if(direction == 'in'){
self.temp_view = self.view;
self.changeView('thumb')
self.changeView('thumbs')
self.el.addEvent('outerClick', function(){
self.changeView(self.temp_view)

Loading…
Cancel
Save