mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Merge branch 'MDL-71813-master' of https://github.com/NashTechOpenUniversity/moodle
This commit is contained in:
commit
0e7e393748
@ -290,6 +290,12 @@ YUI.add('moodle-core_filepicker', function(Y) {
|
||||
Y.bind(callback, options.callbackcontext)(e, e.node.fileinfo);
|
||||
Y.YUI2.util.Event.stopEvent(e.event)
|
||||
});
|
||||
// Simulate click on file not folder.
|
||||
scope.treeview.subscribe('enterKeyPressed', function(node) {
|
||||
if (node.children.length === 0) {
|
||||
Y.one(node.getContentEl()).one('a').simulate('click');
|
||||
}
|
||||
});
|
||||
// TODO MDL-32736 support right click
|
||||
/*if (options.rightclickcallback) {
|
||||
scope.treeview.subscribe('dblClickEvent', function(e){
|
||||
|
Loading…
x
Reference in New Issue
Block a user