]> git.mjollnir.org Git - moodle.git/commitdiff
fomslib: MDL-18735 disabledif not working in IE if depended on element was a <select>.
authortjhunt <tjhunt>
Mon, 6 Apr 2009 02:56:37 +0000 (02:56 +0000)
committertjhunt <tjhunt>
Mon, 6 Apr 2009 02:56:37 +0000 (02:56 +0000)
This was a regression from MDL-18522. Sorry.

lib/javascript-static.js

index e163821a08efd45e74ed297fa9f4ebc05d755c37..ce8940bcbbe615bd19e8bfdeda424a26748fc6d2 100644 (file)
@@ -180,7 +180,7 @@ function lockoptionsallsetup(formid) {
         if (!masters) {
             continue;
         }
-        if (!masters[0]) {
+        if (masters.tagName) {
             // If master is radio buttons, we get an array, otherwise we don't.
             // Convert both cases to an array for convinience.
             masters = [masters];