Initial view state

This commit is contained in:
Ruud committed 2012-02-26 23:27:48 +01:00
1 parent 17d431a9e1
commit 457bf0958a
2 files changed
+3 -3

No files matched your search

@@ -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(){
@@ -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)