From 2473f3fca7b99e9acb89c2024f978dbad49d276a Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Fri, 15 Aug 2014 17:25:30 -0400 Subject: [PATCH] Autosearch when re-using an existing SP session on subsequent init() --- src/mkws-core.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(); } -- 1.7.10.4