update getHash
This commit is contained in:
parent
dea3672679
commit
b2e752e930
1 changed files with 3 additions and 9 deletions
|
@ -697,15 +697,9 @@ pandora.getHash = function(state, callback) {
|
||||||
'showAnnotations', 'showCloseButton', 'showLayers', 'showTimeline',
|
'showAnnotations', 'showCloseButton', 'showLayers', 'showTimeline',
|
||||||
'timeline', 'title'
|
'timeline', 'title'
|
||||||
],
|
],
|
||||||
isEmbed = state.hash && state.hash.query
|
isEmbed = state.hash && state.hash.anchor == 'embed',
|
||||||
&& Ox.indexOf(state.hash.query, function(condition) {
|
isPrint = state.hash && state.hash.anchor == 'print',
|
||||||
return Ox.isEqual(condition, {key: 'embed', value: true});
|
printKeys = [],
|
||||||
}) > -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'],
|
|
||||||
removeKeys = [];
|
removeKeys = [];
|
||||||
if (state.hash && state.hash.anchor) {
|
if (state.hash && state.hash.anchor) {
|
||||||
if (state.page == 'help') {
|
if (state.page == 'help') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue