mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-68344 filepicker: File Picker focus lost on upload
This commit is contained in:
parent
99777d963f
commit
fb75fd0396
@ -493,6 +493,7 @@ M.form_filemanager.init = function(Y, options) {
|
||||
// XXX: magic here, to let filepicker use filemanager scope
|
||||
options.magicscope = this;
|
||||
options.savepath = this.currentpath;
|
||||
options.previousActiveElement = e.target.ancestor('a', true);
|
||||
M.core_filepicker.show(Y, options);
|
||||
},
|
||||
|
||||
|
@ -1422,7 +1422,9 @@ M.core_filepicker.init = function(Y, options) {
|
||||
width : width+'px',
|
||||
responsiveWidth : 768,
|
||||
height : '558px',
|
||||
zIndex : this.options.zIndex
|
||||
zIndex : this.options.zIndex,
|
||||
focusOnPreviousTargetAfterHide: true,
|
||||
focusAfterHide: this.options.previousActiveElement
|
||||
});
|
||||
|
||||
// create panel for selecting a file (initially hidden)
|
||||
|
Loading…
x
Reference in New Issue
Block a user