Save view to different cookie so people don't have to reset.

This commit is contained in:
Ruud
2013-03-18 22:02:47 +01:00
parent 73b7bcc6ce
commit e694276a8d
@@ -429,12 +429,12 @@ var MovieList = new Class({
.addClass(new_view+'_list') .addClass(new_view+'_list')
self.current_view = new_view; self.current_view = new_view;
Cookie.write(self.options.identifier+'_view', new_view, {duration: 1000}); Cookie.write(self.options.identifier+'_view2', new_view, {duration: 1000});
}, },
getSavedView: function(){ getSavedView: function(){
var self = this; var self = this;
return Cookie.read(self.options.identifier+'_view'); return Cookie.read(self.options.identifier+'_view2');
}, },
search: function(){ search: function(){