From: Mike Taylor Date: Mon, 3 Mar 2014 16:35:35 +0000 (+0000) Subject: Reorder some code. X-Git-Tag: 1.0.0~1357 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=82b68679aa23ae903fe3efe2976d5cf50d688f43;p=mkws-moved-to-github.git Reorder some code. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 2484229..3881729 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -228,6 +228,10 @@ function team($, teamName) { m_sort = mkws_config.sort_default; debug("copied mkws_config.sort_default '" + mkws_config.sort_default + "' to m_sort"); + if (!isNaN(parseInt(mkws_config.perpage_default))) { + m_perpage = parseInt(mkws_config.perpage_default); + } + // 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; @@ -251,10 +255,6 @@ function team($, teamName) { "showResponseType": '', // or "json" (for debugging?) "onrecord": onRecord }); - if (!isNaN(parseInt(mkws_config.perpage_default))) { - m_perpage = parseInt(mkws_config.perpage_default); - } - // Finds the node of the specified class within the current team // Multiple OR-clauses separated by commas are handled