Load Chilifresh content after page load
authorBill Erickson <berick@esilibrary.com>
Fri, 8 Jul 2011 18:17:38 +0000 (14:17 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 8 Jul 2011 18:17:38 +0000 (14:17 -0400)
Execute the CF JS after other inline JS has run.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/templates/default/opac/parts/chilifresh.tt2

index 9c64e55..d58b3f5 100644 (file)
@@ -15,6 +15,6 @@
     <input type="hidden" id="chilifresh_version" name="chilifresh_version" value="onsite_v1" />
     <input type="hidden" id="chilifresh_type" name="chilifresh_type" value="search" />
     <script type="text/javascript" src="[% chili_url %]"></script>
-    <script>try { chili_init(); } catch(E) {}</script>
+    <script>try { setTimeout(chili_init, 0); } catch(E) {}</script>
 [% END %]