diff --git a/course/yui/toolboxes/toolboxes.js b/course/yui/toolboxes/toolboxes.js index 5524b4b3c66..9ebc28210dc 100644 --- a/course/yui/toolboxes/toolboxes.js +++ b/course/yui/toolboxes/toolboxes.js @@ -515,7 +515,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'),