From 0a3cd14139834a74541536fab7eebe60b39bfadb Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 27 Mar 2014 16:28:27 +0000 Subject: [PATCH] Reorder --- src/mkws-core.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index c1cb1e4..ba20871 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -326,6 +326,12 @@ mkws.pagerNext = function(tname) { mkws_config.query_width = 50; } + // protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp" + if (mkws_config.pazpar2_url.match(/^\/\//)) { + mkws_config.pazpar2_url = document.location.protocol + mkws_config.pazpar2_url; + log("adjust protocol independent links: " + mkws_config.pazpar2_url); + } + if (mkws_config.responsive_design_width) { // Responsive web design - change layout on the fly based on // current screen width. Required for mobile devices. @@ -334,12 +340,6 @@ mkws.pagerNext = function(tname) { $(document).ready(resizePage); } - // protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp" - if (mkws_config.pazpar2_url.match(/^\/\//)) { - mkws_config.pazpar2_url = document.location.protocol + mkws_config.pazpar2_url; - log("adjust protocol independent links: " + mkws_config.pazpar2_url); - } - // Backwards compatibility: set new magic class names on any // elements that have the old magic IDs. var ids = [ "Switch", "Lang", "Search", "Pager", "Navi", -- 1.7.10.4