mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-34139 filemanager select-file dialogue should update file on Enter
This commit is contained in:
parent
2cbdaa77ea
commit
eb45e641b6
@ -736,6 +736,12 @@ M.form_filemanager.init = function(Y, options) {
|
||||
e.preventDefault();
|
||||
this.update_file();
|
||||
}, this);
|
||||
selectnode.all('form').on('keydown', function(e) {
|
||||
if (e.keyCode == 13) {
|
||||
e.preventDefault();
|
||||
this.update_file();
|
||||
}
|
||||
}, this);
|
||||
selectnode.one('.fp-file-download').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
if (this.selectui.fileinfo.type != 'folder') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user