From: Jason Skomorowski Date: Fri, 15 Aug 2014 21:25:30 +0000 (-0400) Subject: Autosearch when re-using an existing SP session on subsequent init() X-Git-Tag: 1.0.0~39^2~7^2~9 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2473f3fca7b99e9acb89c2024f978dbad49d276a;p=mkws-moved-to-github.git Autosearch when re-using an existing SP session on subsequent init() --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 3632a64..6f58a92 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -650,14 +650,12 @@ mkws.pagerNext = function(tname) { } */ - if (mkws.config.use_service_proxy) { - if (!mkws.authenticated) { - authenticateSession(mkws.config.service_proxy_auth, - mkws.config.service_proxy_auth_domain, - mkws.config.pazpar2_url); - } + if (mkws.config.use_service_proxy && !mkws.authenticated) { + authenticateSession(mkws.config.service_proxy_auth, + mkws.config.service_proxy_auth_domain, + mkws.config.pazpar2_url); } else { - // raw pp2 + // raw pp2 or we have a session already open runAutoSearches(); }