Merge branch 'mdl-76729_401' of https://github.com/james-cnz/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-02-07 12:37:16 +08:00
commit 61f1700fbf

View File

@ -736,9 +736,7 @@ M.form_filemanager.init = function(Y, options) {
this.lazyloading={};
}
this.filemanager.one('.fp-content').fp_display_filelist(options, list, this.lazyloading);
if (this.viewmode != 2) {
this.content_scrolled();
}
this.content_scrolled();
// This is used to focus after refreshing the list files by update file and set main file action.
if (actionfiles !== undefined) {
if (actionfiles.action == 'updatefile' || actionfiles.action == 'setmainfile') {