Display only available formats for metarecord holds in IE
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 22 Aug 2011 14:37:30 +0000 (10:37 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 22 Aug 2011 15:48:35 +0000 (11:48 -0400)
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@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/opac/skin/default/js/holds.js

index 0363e5b..b8a5e49 100644 (file)
@@ -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