From 77e698b6b7ce7314413ffc39d5893883a51ce7ee Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Thu, 4 Aug 2016 10:37:17 -0400 Subject: [PATCH] Delay Novelist loading slightly So that if Novelist holds things up other JavaScript, like staff client calls, are not delayed due to Novelist issues. Signed-off-by: Thomas Berezansky Signed-off-by: Mike Rylander --- Open-ILS/src/templates/opac/parts/acjs.tt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/acjs.tt2 b/Open-ILS/src/templates/opac/parts/acjs.tt2 index dd48374a10..9d4eaa2fc3 100644 --- a/Open-ILS/src/templates/opac/parts/acjs.tt2 +++ b/Open-ILS/src/templates/opac/parts/acjs.tt2 @@ -54,6 +54,7 @@ [%- IF ENV.OILS_NOVELIST_URL -%] /* Load novelist content */ + setTimeout( function() { novSelect.loadContentForQuery( { ClientIdentifier : '[% ident %]', @@ -67,7 +68,7 @@ // hide the Loading... text dojo.byId('novelist-loading').innerHTML = ''; } - ); + )}, 100); [%- END; # Novelist -%] [% END; # IF ident -- 2.11.0