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>
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++ ) {
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