X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=c00252dac7ae607dee6815557be1298ea51cac3f;hb=8ad2b96c6179a9886f0f3b710749d68e6f3c6bd6;hp=90da742976e4a337c8646fa3f45842fa9455a369;hpb=81cf6edc4df5d98db956d4608c274852f3fb56e4;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 90da742..c00252d 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -973,15 +973,6 @@ function _make_mkws_team($, teamName) { mkws_html_switch(); - if (mkws_config.use_service_proxy) { - mkws_service_proxy_auth(mkws_config.service_proxy_auth, - mkws_config.service_proxy_auth_domain, - mkws_config.pazpar2_url); - } else { - // raw pp2 - run_auto_searches(); - } - if (mkws_config.responsive_design_width) { // Responsive web design - change layout on the fly based on // current screen width. Required for mobile devices. @@ -1118,7 +1109,7 @@ function _make_mkws_team($, teamName) { * The username/password is configured in the apache config file * for the site. */ - function mkws_service_proxy_auth(auth_url, auth_domain, pp2_url) { + mkws.service_proxy_auth = function(auth_url, auth_domain, pp2_url) { debug("Run service proxy auth URL: " + auth_url); if (!auth_domain) { @@ -1449,5 +1440,14 @@ function _mkws_jquery_plugin ($) { log("Made MKWS team '" + tname + "'"); } }); + + if (mkws_config.use_service_proxy) { + mkws.service_proxy_auth(mkws_config.service_proxy_auth, + mkws_config.service_proxy_auth_domain, + mkws_config.pazpar2_url); + } else { + // raw pp2 + run_auto_searches(); + } }); })(jQuery);