[open-ils-commits] r18455 - branches/rel_2_0/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:41:15 EDT 2010
Author: erickson
Date: 2010-10-22 16:41:09 -0400 (Fri, 22 Oct 2010)
New Revision: 18455
Modified:
branches/rel_2_0/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: branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2010-10-22 20:40:25 UTC (rev 18454)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2010-10-22 20:41:09 UTC (rev 18455)
@@ -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