From b2d5f189e348e3965308ea55d16590c3cb05064e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 20 Jun 2011 20:34:23 +0200 Subject: [PATCH] fix onpopstate --- static/js/pandora.js | 2 +- static/js/pandora/URL.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index 781acc9..257525f 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -85,7 +85,7 @@ Ox.load('Geo', function() { } pandora.URL.parse(); - window.onpopstate = function() { + window.onpopstate = function(event) { pandora.URL.update(); }; diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index b295514..db18c85 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -1,4 +1,6 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + + pandora.URL = (function() { var old = { @@ -117,10 +119,9 @@ pandora.URL = (function() { ].options('position') ); } - delete old.user.ui; + //delete old.user.ui; } - } + }; }()); -