From 573cb387f61901e08696e1df2eec10bc6b802943 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Dec 2010 11:53:47 -0500 Subject: [PATCH] condense and protect chilifresh and novelist loading; move org lasso into condense block; move condensed/common js before onload in FF script block to simplify some things --- Open-ILS/web/opac/skin/default/xml/body.xml | 12 +++++ .../web/opac/skin/default/xml/common/js_common.xml | 12 +---- .../skin/default/xml/common/js_common_postbody.xml | 61 +++++++++------------- 3 files changed, 39 insertions(+), 46 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/xml/body.xml b/Open-ILS/web/opac/skin/default/xml/body.xml index b9b3bb866f..0e44596c55 100644 --- a/Open-ILS/web/opac/skin/default/xml/body.xml +++ b/Open-ILS/web/opac/skin/default/xml/body.xml @@ -39,4 +39,16 @@ + + + + + + + + + + + + diff --git a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml index 82ce698b9a..b818155f6a 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml @@ -34,7 +34,6 @@ - @@ -45,6 +44,7 @@ Currently, only files in $OPAC/common/js/ are eligible for automatic combination. --> + @@ -301,15 +301,6 @@ ]]> - - - - - - - - - @@ -329,5 +320,4 @@ - diff --git a/Open-ILS/web/opac/skin/default/xml/common/js_common_postbody.xml b/Open-ILS/web/opac/skin/default/xml/common/js_common_postbody.xml index 301e482a27..d10ee3dcff 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/js_common_postbody.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/js_common_postbody.xml @@ -29,33 +29,33 @@ dojo.require("dojo.cookie"); dojo.require("openils.widget.FacetSidebar"); // pulls in Searcher and I18N - function skin_init() { + openils.Util.requireLegacy('//OrgTree.js'); + openils.Util.requireLegacy('//FacetDefs.js'); + + + openils.Util.requireLegacy('/skin/default/js/combined.js') + + /* + When combined JS is enabled in the Apache config, the block + below defines which files are added to the final combined JS file. + Currently, only files in $OPAC/common/js/ are eligible for automatic combination. + */ + /* START COMPRESSION */ + openils.Util.requireLegacy('/OrgLasso.js'); + openils.Util.requireLegacy('/utils.js'); + openils.Util.requireLegacy('/config.js'); + openils.Util.requireLegacy('/CGI.js'); + openils.Util.requireLegacy('/md5.js'); + openils.Util.requireLegacy('/slimtree.js'); + openils.Util.requireLegacy('/opac_utils.js'); + openils.Util.requireLegacy('/org_utils.js'); + openils.Util.requireLegacy('/RemoteRequest.js'); + openils.Util.requireLegacy('/init.js'); + openils.Util.requireLegacy('/added_content.js'); + /* END COMPRESSION */ + - openils.Util.requireLegacy('//OrgTree.js'); - openils.Util.requireLegacy('//FacetDefs.js'); - openils.Util.requireLegacy('/OrgLasso.js'); - - - openils.Util.requireLegacy('/skin/default/js/combined.js') - - /* - When combined JS is enabled in the Apache config, the block - below defines which files are added to the final combined JS file. - Currently, only files in $OPAC/common/js/ are eligible for automatic combination. - */ - /* START COMPRESSION */ - openils.Util.requireLegacy('/utils.js'); - openils.Util.requireLegacy('/config.js'); - openils.Util.requireLegacy('/CGI.js'); - openils.Util.requireLegacy('/md5.js'); - openils.Util.requireLegacy('/slimtree.js'); - openils.Util.requireLegacy('/opac_utils.js'); - openils.Util.requireLegacy('/org_utils.js'); - openils.Util.requireLegacy('/RemoteRequest.js'); - openils.Util.requireLegacy('/init.js'); - openils.Util.requireLegacy('/added_content.js'); - /* END COMPRESSION */ - + function skin_init() { config.css.color_1 = "color_1"; config.css.color_2 = "color_2"; @@ -275,12 +275,3 @@ } ); ]]> - - - - - - - - - -- 2.11.0