MDL-37453 fixing regression from MDL-36550 - label show/hide in AJAX works incorrectly
authorMarina Glancy <marina@moodle.com>
Thu, 10 Jan 2013 02:33:03 +0000 (13:33 +1100)
committerMarina Glancy <marina@moodle.com>
Mon, 14 Jan 2013 04:13:14 +0000 (15:13 +1100)
course/yui/toolboxes/toolboxes.js

index 1b37f40..57f0d2a 100644 (file)
@@ -64,7 +64,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
             var toggle_class;
             if (this.is_label(element)) {
                 toggle_class = CSS.DIMMEDTEXT;
-                dimarea = element.one(CSS.MODINDENTDIV + ' div');
+                dimarea = element.all(CSS.MODINDENTDIV + ' > div').item(1);
             } else {
                 toggle_class = CSS.DIMCLASS;
                 dimarea = element.one('a');