From: senator Date: Sat, 5 Mar 2011 17:17:14 +0000 (-0500) Subject: important fixes for bibtemplate, featuredcontentslider, result_common.js X-Git-Tag: kcls-grey-screen-prod1~29 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=22d65f7f9dc5beb37d633078472572b1c900ace3;p=evergreen%2Fequinox.git important fixes for bibtemplate, featuredcontentslider, result_common.js --- diff --git a/Open-ILS/web/opac/skin/kcls/js/misc.js b/Open-ILS/web/opac/skin/kcls/js/misc.js index 1f9b3fa882..9059a17312 100644 --- a/Open-ILS/web/opac/skin/kcls/js/misc.js +++ b/Open-ILS/web/opac/skin/kcls/js/misc.js @@ -3,15 +3,6 @@ var webCacheKey; var userVitalStats; function opac_init() { - featuredcontentslider.init({ - id: "homebanner", - contentsource: ["inline", ""], - toc: "markup", - nextprev: ["", ""], - enablefade: [true, 0.04], - onChange: function(previndex, curindex){}, - autorotate: [true, 3000] //pause time (in milliseconds) - }); var advLink = getId("home_adv_search_link"); if(advLink) advLink.setAttribute("href", buildOPACLink({page:ADVANCED})); getId("home_myopac_link").setAttribute("href", buildOPACLink({page:MYOPAC}, false, true)); diff --git a/Open-ILS/web/opac/skin/kcls/js/result_common.js b/Open-ILS/web/opac/skin/kcls/js/result_common.js index 7e26da8554..bb82f20c81 100644 --- a/Open-ILS/web/opac/skin/kcls/js/result_common.js +++ b/Open-ILS/web/opac/skin/kcls/js/result_common.js @@ -58,7 +58,9 @@ var recordsCache = []; var lowHitCount = 4; var isbnList = ''; var googleBooksLink = true; -buildOrgSel($('holdsCacheSel'), globalOrgTree, 0); +attachEvt("common", "init", function() { + buildOrgSel($('holdsCacheSel'), globalOrgTree, 0); +}); var resultFetchAllRecords = false; var resultCompiledSearch = null; diff --git a/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml b/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml index b3d80a439d..2be236cd24 100644 --- a/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml +++ b/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml @@ -142,6 +142,7 @@ dojo.require("dijit.form.FilteringSelect"); dojo.require("dojo.date.locale"); dojo.require("dojo.date.stamp"); dojo.require("dojo.parser"); +dojo.require("openils.BibTemplate"); dojo.require("openils.widget.FacetSidebar"); // pulls in Searcher and I18N dojo.require("dijit.form.CheckBox"); dojo.require("openils.widget.ProgressDialog"); @@ -184,3 +185,16 @@ try { document.getElementById('toptable').style.display = ''; } catch(ee) {} } + +dojo.addOnLoad(function() { + featuredcontentslider.init({ + id: "homebanner", + contentsource: ["inline", ""], + toc: "markup", + nextprev: ["", ""], + enablefade: [true, 0.04], + onChange: function(previndex, curindex){}, + autorotate: [true, 3000] //pause time (in milliseconds) + }); +}); +