diff --git a/course/yui/toolboxes/toolboxes.js b/course/yui/toolboxes/toolboxes.js index c4f004b3a0b..db001dc244e 100644 --- a/course/yui/toolboxes/toolboxes.js +++ b/course/yui/toolboxes/toolboxes.js @@ -505,7 +505,10 @@ YUI.add('moodle-course-toolboxes', function(Y) { */ handle_resource_dim : function(button, activity, action) { var toggleclass = CSS.DIMCLASS, - dimarea = activity.one('a, .contentwithoutlink'), + dimarea = activity.one([ + SELECTOR.ACTIVITYLINK, + SELECTOR.CONTENTWITHOUTLINK + ].join(', ')), availabilityinfo = activity.one(CSS.AVAILABILITYINFODIV), nextaction = (action === 'hide') ? 'show' : 'hide', buttontext = button.one('span'),