Delay Novelist loading slightly
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 4 Aug 2016 14:37:17 +0000 (10:37 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 9 Aug 2016 18:39:37 +0000 (14:39 -0400)
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 <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/acjs.tt2

index dd48374..9d4eaa2 100644 (file)
@@ -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