Save the last view properly
This commit is contained in:
1 parent
9235eda73b
commit
92f4ade371
1 file changed
+2
-2
@@ -40,7 +40,7 @@ var MovieList = new Class({
|
|||||||
}) : null
|
}) : null
|
||||||
);
|
);
|
||||||
|
|
||||||
self.changeView(self.options.view || 'details');
|
self.changeView(self.getSavedView() || self.options.view || 'details');
|
||||||
|
|
||||||
self.getMovies();
|
self.getMovies();
|
||||||
|
|
||||||
@@ -432,7 +432,7 @@ var MovieList = new Class({
|
|||||||
|
|
||||||
getSavedView: function(){
|
getSavedView: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
return Cookie.read(self.options.identifier+'_view') || 'thumbs';
|
return Cookie.read(self.options.identifier+'_view') || 'details';
|
||||||
},
|
},
|
||||||
|
|
||||||
search: function(){
|
search: function(){
|
||||||
|
|||||||
Reference in new issue
Block a user