Save the last view properly

This commit is contained in:
Ruud
2013-03-17 12:55:07 +01:00
parent 9235eda73b
commit 92f4ade371
@@ -40,7 +40,7 @@ var MovieList = new Class({
}) : null
);
self.changeView(self.options.view || 'details');
self.changeView(self.getSavedView() || self.options.view || 'details');
self.getMovies();
@@ -432,7 +432,7 @@ var MovieList = new Class({
getSavedView: function(){
var self = this;
return Cookie.read(self.options.identifier+'_view') || 'thumbs';
return Cookie.read(self.options.identifier+'_view') || 'details';
},
search: function(){