From: berick Date: Wed, 9 Mar 2011 23:02:19 +0000 (-0500) Subject: removed some unnecessary code; load bibtemplate data from a setTimeout. why? becaus... X-Git-Tag: kcls-grey-screen-prod1~16 X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=0bf2e927d3043e96963a30c8db2f1b564db670f5 removed some unnecessary code; load bibtemplate data from a setTimeout. why? because IE said so. --- diff --git a/Open-ILS/web/opac/skin/kcls/js/sidebar.js b/Open-ILS/web/opac/skin/kcls/js/sidebar.js index 3f55bde..4791046 100644 --- a/Open-ILS/web/opac/skin/kcls/js/sidebar.js +++ b/Open-ILS/web/opac/skin/kcls/js/sidebar.js @@ -192,37 +192,3 @@ function sidebarTreesFree() { authorSidebarTree = null; seriesSidebarTree = null; } - - - - -/* --------------------------------------------------------------------------------- */ -/* Code to support GALILEO links for PINES. Fails gracefully -/* --------------------------------------------------------------------------------- */ -attachEvt('common', 'init', buildEGGalLink); -function buildEGGalLink() { - - /* we're in a lib, nothing to do here */ - if( getOrigLocation() ) return; - if(!$('eg_gal_link')) return; - - //var link = 'http://demo.galib.uga.edu/express?pinesid='; - var link = 'http://www.galileo.usg.edu/express?pinesid='; - if(grabUser()) { - $('eg_gal_link').setAttribute('href', link + G.user.session); - return; - } - - $('eg_gal_link').setAttribute('href', 'javascript:void(0);'); - $('eg_gal_link').setAttribute('target', ''); - $('eg_gal_link').onclick = function() { - /* we're not logged in. go ahead and login */ - detachAllEvt('common','locationChanged'); - detachAllEvt('common','loggedIn'); - attachEvt('common','loggedIn', function() { goTo(link + G.user.session); }) - initLogin(); - }; -} -/* --------------------------------------------------------------------------------- */ - - diff --git a/Open-ILS/web/opac/skin/kcls/xml/common/js_common.xml b/Open-ILS/web/opac/skin/kcls/xml/common/js_common.xml index fc4c711..ca56b79 100644 --- a/Open-ILS/web/opac/skin/kcls/xml/common/js_common.xml +++ b/Open-ILS/web/opac/skin/kcls/xml/common/js_common.xml @@ -92,15 +92,19 @@