Permalink
Browse files

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

…works incorrectly
  • Loading branch information...
1 parent 17c88e6 commit b3e8f06d20cb0f9a26ee9e5a6913cbc199c5326d @marinaglancy marinaglancy committed with stronk7 Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 b3e8f06

Please sign in to comment.