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

Evergreen Git git at git.evergreen-ils.org
Mon Aug 22 11:53:25 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  a04b43ec7fbe51c444cb82ba681a584e33bc39a6 (commit)
      from  b46a73e15b6848f396dcc8dfa730271952e19f25 (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 a04b43ec7fbe51c444cb82ba681a584e33bc39a6
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Mon Aug 22 10:37:30 2011 -0400

    Display only available formats for metarecord holds in IE
    
    The OPAC's usual hideMe()/unHideMe() tricks don't work for <option>
    elements in Internet Explorer 8.  Use the disabled attribute.
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/web/opac/skin/default/js/holds.js b/Open-ILS/web/opac/skin/default/js/holds.js
index 0363e5b..b8a5e49 100644
--- a/Open-ILS/web/opac/skin/default/js/holds.js
+++ b/Open-ILS/web/opac/skin/default/js/holds.js
@@ -708,6 +708,7 @@ function holdsSetFormatSelector() {
     for( var i = 0; i < selector.options.length; i++ ) {
         if (selector.options[i].className.indexOf('hide_me') == -1)
             hideMe(selector.options[i]);
+        selector.options[i].disabled = true;
     }
 
 	for( var i = 0; i < avail_formats.length; i++ ) {
@@ -716,6 +717,7 @@ function holdsSetFormatSelector() {
         if (!opt) continue;
 		if(type=='M') opt.selected=true;
 		unHideMe(opt);
+        opt.disabled = false;
 	}
 
     // If the user selects a format, P-type holds are no longer an option

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

Summary of changes:
 Open-ILS/web/opac/skin/default/js/holds.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list