[open-ils-commits] [GIT] Evergreen ILS branch master updated. b4c93a00a526b215b70bbd8c857314d63740adcf

Evergreen Git git at git.evergreen-ils.org
Fri Sep 16 16:35:16 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  b4c93a00a526b215b70bbd8c857314d63740adcf (commit)
      from  48ab6c5f669c2e6862446fe6a6694b2b822b60a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b4c93a00a526b215b70bbd8c857314d63740adcf
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri Sep 16 16:32:34 2011 -0400

    TPac: clicking on open "extras" tab closes the tab
    
    In record detail page, if a tab (e.g. Subjects) is open, clicking on the
    tab header again will close the tab.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2
index a9e03ad..7c7339d 100644
--- a/Open-ILS/src/templates/opac/parts/record/extras.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2
@@ -41,8 +41,14 @@
         <div class="rdetail_extras">
             <div class="rdetail_extras_hr"></div>
             <div class="rdetail_extras_link">
-                [%  href = mkurl('', {expand => name}) _ '#' _ name; 
-                    img_url = ctx.media_prefix _ '/images/rdetail_arrow' _ (tab_is_active(name) ? '_down' : '') _ '.png' 
+                [%  
+                    IF tab_is_active(name);
+                        href = mkurl('', {}, ['expand']);
+                        img_url = ctx.media_prefix _ '/images/rdetail_arrow_down.png';
+                    ELSE;
+                        href = mkurl('', {expand => name}) _ '#' _ name; 
+                        img_url = ctx.media_prefix _ '/images/rdetail_arrow.png';
+                    END;
                 %]
                 <a name='[% name %]' href='[% href %]'><img alt='[% extra.label %]' src='[% img_url %]'/></a>
                 <a href='[% href %]' class="rdetail_extras_lbl">[% extra.label %]</a>

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/extras.tt2     |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list