trying to improve performance
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Jul 2005 03:18:41 +0000 (03:18 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Jul 2005 03:18:41 +0000 (03:18 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1167 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js

index f7d5fb9..1faf242 100755 (executable)
@@ -36,12 +36,20 @@ function patron_display_init(p) {
                        p.w.retrieve_patron_via_barcode( p.patron );
        }
 
-       p.w.clamshell = spawn_clamshell( 
-               p.w.document, 'new_iframe', p.clamshell, {
-                       'horizontal' : true,
-                       'onload' : patron_display_init_after_clamshell(p) 
+       sdump('D_TRACE','******** SETTING TIMEOUT\n');
+       setTimeout( 
+               function() {
+                       sdump('D_TRACE','******** TIMEOUT OCCURRED\n');
+                       p.w.clamshell = spawn_clamshell( 
+                               p.w.document, 'new_iframe', p.clamshell, {
+                                       'horizontal' : true,
+                                       'onload' : patron_display_init_after_clamshell(p) 
+                               }
+                       );
                }
+               ,0
        );
+       sdump('D_TRACE','******** AFTER SETTING TIMEOUT\n');
 
        sdump('D_TRACE_EXIT',arg_dump(arguments));
        return;