URL controller: don't store ui.hash

This commit is contained in:
rolux 2013-07-12 12:32:45 +02:00
parent 0a2e07f338
commit 34c0e98798

View file

@ -63,20 +63,6 @@ pandora.URL = (function() {
} }
if (
pandora.user.ui.hash && (
pandora.user.ui.hash.anchor || !Ox.isEmpty(pandora.user.ui.hash.query)
)
) {
state.hash = {};
if (pandora.user.ui.hash.anchor) {
state.hash.anchor = pandora.user.ui.hash.anchor;
}
if (!Ox.isEmpty(pandora.user.ui.hash.query)) {
state.hash.query = pandora.user.ui.hash.query;
}
}
Ox.Log('URL', 'GOT STATE ...', state) Ox.Log('URL', 'GOT STATE ...', state)
return state; return state;
@ -100,26 +86,14 @@ pandora.URL = (function() {
} else { } else {
if (state.hash) { if (
set.hash = state.hash; state.hash
if (!state.hash.anchor) { && !Ox.contains(['embed', 'print'], state.hash.anchor)
state.hash.anchor = ''; && state.hash.query
} ) {
if (state.hash.query) { state.hash.query.forEach(function(kv) {
if (state.hash.query.embed === true) { set[kv.key] = kv.value;
// ... });
} else if (state.hash.query.print == true) {
// ...
} else {
state.hash.query.forEach(function(kv) {
set[kv.key] = kv.value;
});
}
} else {
set.hash.query = [];
}
} else {
set.hash = Ox.clone(pandora.site.user.ui.hash, true);
} }
if (state.page) { if (state.page) {