Move dojo loading around to avoid the "white screen of death" in Firefox and xulrunne...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Oct 2010 16:19:49 +0000 (16:19 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Oct 2010 16:19:49 +0000 (16:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18446 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/body.xml
Open-ILS/web/opac/skin/default/xml/common/js_common.xml
Open-ILS/web/opac/skin/default/xml/home/index_body.xml
Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml

index 38ae525..41068c2 100644 (file)
         });]]>
     </script>
 
+    <script language="javascript" type="text/javascript">
+        dojo.addOnLoad(init);
+        dojo.require("dijit._Calendar");
+        dojo.require("dijit.form.DateTextBox");
+        dojo.require("dijit.form.FilteringSelect");
+        dojo.require("dojo.date.locale");
+        dojo.require("dojo.date.stamp");
+        dojo.require("dojo.parser");
+        dojo.require("openils.widget.FacetSidebar"); // pulls in Searcher and I18N
+    </script>
+
 </body>
index 952d1d2..a2a428f 100644 (file)
        <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/RemoteRequest.js' type='text/javascript'></script>
        <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/init.js' type='text/javascript'></script>
        <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/added_content.js' type='text/javascript'></script>
-
-       <script language="javascript" type="text/javascript">
-               dojo.addOnLoad(init);
-               dojo.require("dijit._Calendar");
-               dojo.require("dijit.form.DateTextBox");
-               dojo.require("dijit.form.FilteringSelect");
-               dojo.require("dojo.date.locale");
-               dojo.require("dojo.date.stamp");
-               dojo.require("dojo.parser");
-               dojo.require("openils.widget.FacetSidebar"); // pulls in Searcher and I18N
-       </script>
index 0b60ce8..a20a133 100644 (file)
             }
         });]]>
     </script>
+
+    <script language="javascript" type="text/javascript">
+        dojo.addOnLoad(init);
+        dojo.require("dijit._Calendar");
+        dojo.require("dijit.form.DateTextBox");
+        dojo.require("dijit.form.FilteringSelect");
+        dojo.require("dojo.date.locale");
+        dojo.require("dojo.date.stamp");
+        dojo.require("dojo.parser");
+        dojo.require("openils.widget.FacetSidebar"); // pulls in Searcher and I18N
+    </script>
 </body>
 
 
index b18ff47..039b42d 100644 (file)
                config.ids.rdetail.image                                = 'rdetail_image';
                config.ids.rdetail.tor_pic                              = 'rdetail_tor_pic';
 
-        dojo.addOnLoad( function () {
+        setTiemout( function () {
             var here = findOrgUnit(getLocation());
             if (getDepth() > 0 || getDepth === 0 ) {
                 while (getDepth() < findOrgDepth(here))
 
             dojo.require('openils.BibTemplate');
             new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render();
-        });
+        }, 0);
        ]]></script>
 
 </div> <!-- details_body -->