[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 67ade50876bd801d118c341358f5796d811bb13a

Evergreen Git git at git.evergreen-ils.org
Mon Aug 22 11:53:40 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, rel_2_1 has been updated
       via  67ade50876bd801d118c341358f5796d811bb13a (commit)
      from  1b99d85303179f4aca7b50a39a8fe40aacf637ef (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 67ade50876bd801d118c341358f5796d811bb13a
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 3bb583b..4d1329f 100644
--- a/Open-ILS/web/opac/skin/default/js/holds.js
+++ b/Open-ILS/web/opac/skin/default/js/holds.js
@@ -691,6 +691,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++ ) {
@@ -699,6 +700,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