From 79ebfcc5e376ff2c32714e34f62fc78e99083ff4 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 11:12:09 +0530 Subject: [PATCH] revert 4769 --- static/js/URL.js | 11 +---------- static/js/utils.js | 4 +--- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/static/js/URL.js b/static/js/URL.js index 91dd643f4..2cf76871c 100644 --- a/static/js/URL.js +++ b/static/js/URL.js @@ -19,12 +19,7 @@ pandora.URL = (function() { if (Ox.contains(Object.keys(pandora.site.user.ui.part), state.page)) { state.part = pandora.user.ui.part[state.page]; } - //fixme: pass zoom/center for images too - if (state.page == 'documents' - && pandora.user.ui.documents[state.part] - && pandora.user.ui.documents[state.part].page) { - state.parts = [pandora.user.ui.documents[state.part].page]; - } + } else { state.type = pandora.user.ui.section == 'items' @@ -140,10 +135,6 @@ pandora.URL = (function() { if (Ox.contains(Object.keys(pandora.site.user.ui.part), state.page) && state.part) { set['part.' + state.page] = state.part; } - //fixme: parse zoom/center for images too - if (state.page == 'documents' && state.parts && state.parts.length == 1) { - set['documents.' + state.part + '.page'] = state.parts[0]; - } pandora.UI.set(set); callback && callback(); diff --git a/static/js/utils.js b/static/js/utils.js index d75c07d9b..8f51343b5 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1412,7 +1412,7 @@ pandora.getPageTitle = function(stateOrURL) { : null; }; -pandora.getPart = function(state, str, parts, callback) { +pandora.getPart = function(state, str, callback) { if (state.page == 'api') { pandora.api.api(function(result) { if (Ox.contains(Object.keys(result.data.actions), str)) { @@ -1476,8 +1476,6 @@ pandora.getPart = function(state, str, parts, callback) { }, function(result) { if (result.data.items) { state.part = str; - //page/zoom/center get parsed in URL.js - state.parts = parts; } else { state.page = ''; }