mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
course-combolist MDL-24315 Fixed issue with collapsible regions triggering on anchor elements
This commit is contained in:
parent
0e4c5b912c
commit
4461a18e73
2 changed files with 5 additions and 5 deletions
|
@ -411,8 +411,8 @@ M.util.init_toggle_class_on_click = function(Y, id, cssselector, toggleclassname
|
|||
node.all(cssselector).each(function(node){
|
||||
node.on('click', function(e){
|
||||
e.stopPropagation();
|
||||
if (e.target.get('nodeName')!='A' && e.target.get('nodeName')!='IMG') {
|
||||
this.toggleClass(toggleclassname);
|
||||
if (e.target.test(cssselector) && e.target.get('nodeName')!='A' && e.target.get('nodeName')!='IMG') {
|
||||
this.ancestor().toggleClass(toggleclassname);
|
||||
}
|
||||
}, node);
|
||||
});
|
||||
|
@ -1538,7 +1538,7 @@ M.util.init_mp3flowplayer = function (id, playerpath, audioplayerpath, fileurl,
|
|||
},
|
||||
audio: {url: audioplayerpath}
|
||||
},
|
||||
clip: { url: fileurl,
|
||||
clip: {url: fileurl,
|
||||
provider: "audio",
|
||||
autoPlay: false
|
||||
}
|
||||
|
@ -1565,7 +1565,7 @@ M.util.init_mp3flowplayerplugin = function (id, playerpath, audioplayerpath, fil
|
|||
},
|
||||
audio: {url: audioplayerpath}
|
||||
},
|
||||
clip: { url: fileurl,
|
||||
clip: {url: fileurl,
|
||||
provider: "audio",
|
||||
autoPlay: false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue