[open-ils-commits] r18454 - trunk/Open-ILS/web/opac/skin/default/xml/rdetail (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Oct 22 16:40:31 EDT 2010


Author: erickson
Date: 2010-10-22 16:40:25 -0400 (Fri, 22 Oct 2010)
New Revision: 18454

Modified:
   trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
further protection against dreaded opac bank page; wrap settimeout redetail bibtemplate loading in an onload to ensure it runs after dojo onload events

Modified: trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2010-10-22 19:27:21 UTC (rev 18453)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2010-10-22 20:40:25 UTC (rev 18454)
@@ -208,16 +208,18 @@
 		config.ids.rdetail.image				= 'rdetail_image';
 		config.ids.rdetail.tor_pic				= 'rdetail_tor_pic';
 
-        setTimeout( function () {
-            var here = findOrgUnit(getLocation());
-            if (getDepth() > 0 || getDepth === 0 ) {
-                while (getDepth() < findOrgDepth(here))
-                    here = findOrgUnit( here.parent_ou() );
-            }
-
-            dojo.require('openils.BibTemplate');
-            new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render();
-        }, 0);
+        dojo.addOnLoad(function() {
+            setTimeout( function () {
+                var here = findOrgUnit(getLocation());
+                if (getDepth() > 0 || getDepth === 0 ) {
+                    while (getDepth() < findOrgDepth(here))
+                        here = findOrgUnit( here.parent_ou() );
+                }
+    
+                dojo.require('openils.BibTemplate');
+                new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render();
+            }, 0);
+        });
 	]]></script>
 
 </div> <!-- details_body -->



More information about the open-ils-commits mailing list