Initial view state
This commit is contained in:
@@ -342,7 +342,7 @@ var MovieList = new Class({
|
|||||||
|
|
||||||
getSavedView: function(){
|
getSavedView: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
return Cookie.read(self.options.identifier+'_view') || 'thumb';
|
return Cookie.read(self.options.identifier+'_view') || 'thumbs';
|
||||||
},
|
},
|
||||||
|
|
||||||
search: function(){
|
search: function(){
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ var Movie = new Class({
|
|||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
self.data = data;
|
self.data = data;
|
||||||
self.view = options.view || 'thumb';
|
self.view = options.view || 'thumbs';
|
||||||
|
|
||||||
self.profile = Quality.getProfile(data.profile_id) || {};
|
self.profile = Quality.getProfile(data.profile_id) || {};
|
||||||
self.parent(self, options);
|
self.parent(self, options);
|
||||||
@@ -120,7 +120,7 @@ var Movie = new Class({
|
|||||||
|
|
||||||
if(direction == 'in'){
|
if(direction == 'in'){
|
||||||
self.temp_view = self.view;
|
self.temp_view = self.view;
|
||||||
self.changeView('thumb')
|
self.changeView('thumbs')
|
||||||
|
|
||||||
self.el.addEvent('outerClick', function(){
|
self.el.addEvent('outerClick', function(){
|
||||||
self.changeView(self.temp_view)
|
self.changeView(self.temp_view)
|
||||||
|
|||||||
Reference in New Issue
Block a user