Skip to content

Commit

Permalink
Merge branch 'MDL-50685_29' of git://github.com/dmonllao/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_29_STABLE
  • Loading branch information
stronk7 committed Sep 16, 2015
2 parents 204f619 + ee7300f commit e544b6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/form/searchableselector.js
Expand Up @@ -90,9 +90,11 @@ selector = {
if (selector.goodbrowser) {
if (visible) {
element.style.display = 'block';
element.disabled = false;
} else {
element.style.display = 'none';
element.selected = false;
element.disabled = true;
}
} else {
// This is a deeply evil hack to make the filtering work in IE.
Expand All @@ -103,15 +105,15 @@ selector = {
if (element.parentNode.tagName.toLowerCase() === 'span') {
element.parentNode.parentNode.replaceChild(element, element.parentNode); // New, old.
}
element.enabled = true;
element.disabled = false;
} else {
if (element.parentNode.tagName.toLowerCase() !== 'span') {
var span = document.createElement('span');
element.parentNode.replaceChild(span, element); // New, old.
span.appendChild(element);
span.style.display = 'none';
}
element.enabled = false;
element.disabled = true;
element.selected = false;
}
}
Expand Down

0 comments on commit e544b6b

Please sign in to comment.