From fc97d25d7b12a0bfdff0b45411bc5aa9ed1f83d0 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 12 Jul 2013 11:38:05 +0000 Subject: [PATCH] update getHash --- static/js/pandora/utils.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 7e0bb8038..531d22309 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -701,16 +701,7 @@ pandora.getHash = function(state, callback) { isPrint = state.hash && state.hash.anchor == 'print', printKeys = [], removeKeys = []; - if (state.hash && state.hash.anchor) { - if (state.page == 'help') { - if ( - state.hash.anchor == 'help' - || !Ox.getObjectById(pandora.site.help, state.hash.anchor) - ) { - delete state.hash.anchor; - } - } - } else if (state.hash) { + if (state.hash && state.hash.anchor && !isEmbed && !isPrint) { delete state.hash.anchor; } if (state.hash && state.hash.query) {