From: erickson Date: Wed, 20 Sep 2006 15:49:23 +0000 (+0000) Subject: no longer showing unusable "My search results" link when doing non-mr search X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=25b5d7072e8c527477fd651cfab840c582321d50;p=Evergreen.git no longer showing unusable "My search results" link when doing non-mr search git-svn-id: svn://svn.open-ils.org/ILS/trunk@6163 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/sidebar.js b/Open-ILS/web/opac/skin/default/js/sidebar.js index d5f71a6382..20bfaf6e1c 100644 --- a/Open-ILS/web/opac/skin/default/js/sidebar.js +++ b/Open-ILS/web/opac/skin/default/js/sidebar.js @@ -25,17 +25,21 @@ function initSideBar() { unHideMe(G.ui.sidebar[MRESULT]); if( getRtype() == RTYPE_MRID ) $("sidebar_title_group_results").setAttribute("href", prevMResults()); + else hideMe($("sidebar_title_group_results").parentNode); } if( page == RDETAIL ) { unHideMe($("sidebar_results_wrapper")); - if( getRtype() == RTYPE_MRID ) - $("sidebar_title_group_results").setAttribute("href", prevMResults()); + + unHideMe(G.ui.sidebar[MRESULT]); if(getRtype()) $("sidebar_title_results").setAttribute("href", prevRResults()); unHideMe(G.ui.sidebar[RRESULT]); - } + + if( getRtype() == RTYPE_MRID ) + $("sidebar_title_group_results").setAttribute("href", prevMResults()); + else hideMe($("sidebar_title_group_results").parentNode); unHideMe(G.ui.sidebar[page]); addCSSClass(G.ui.sidebar[page], "sidebar_item_active");