Browse files

MDL-37453 fixing regression from MDL-36550 - label show/hide in AJAX …

…works incorrectly
  • Loading branch information...
1 parent ca48fe5 commit 7b59f5b32a84142c2f33c694fbbf2909e263a394 @marinaglancy marinaglancy committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/yui/toolboxes/toolboxes.js
View
2 course/yui/toolboxes/toolboxes.js
@@ -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');

0 comments on commit 7b59f5b

Please sign in to comment.