mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-42827 JavaScript: Use a more specific selector for activity links
This commit is contained in:
parent
2d764047ca
commit
1e98b1641a
5
course/yui/toolboxes/toolboxes.js
vendored
5
course/yui/toolboxes/toolboxes.js
vendored
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user