From b2e752e930745a9c96e95438a172a1a9a3bee3fe Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 12 Jul 2013 12:29:24 +0200 Subject: [PATCH] update getHash --- static/js/pandora/utils.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 41e9f976b..7e0bb8038 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -697,15 +697,9 @@ pandora.getHash = function(state, callback) { 'showAnnotations', 'showCloseButton', 'showLayers', 'showTimeline', 'timeline', 'title' ], - isEmbed = state.hash && state.hash.query - && Ox.indexOf(state.hash.query, function(condition) { - return Ox.isEqual(condition, {key: 'embed', value: true}); - }) > -1, - isPrint = state.hash && state.hash.query - && Ox.indexOf(state.hash.query, function(condition) { - return Ox.isEqual(condition, {key: 'print', value: true}); - }) > -1, - printKeys = ['print'], + isEmbed = state.hash && state.hash.anchor == 'embed', + isPrint = state.hash && state.hash.anchor == 'print', + printKeys = [], removeKeys = []; if (state.hash && state.hash.anchor) { if (state.page == 'help') {