Commit c988241f authored by jun's avatar jun
Browse files

Merge branch 'MDL-72966-master' of https://github.com/NashTechOpenUniversity/moodle

parents d0fc23cd ec160a91
......@@ -867,7 +867,8 @@ M.form_dndupload.init = function(Y, options) {
*/
notifyUploadCompleted: function() {
require(['core_form/events'], function(FormEvent) {
FormEvent.notifyUploadCompleted(this.filemanagerhelper.filemanager.get('id'));
const elementId = this.filemanagerhelper ? this.filemanagerhelper.filemanager.get('id') : this.options.containerid;
FormEvent.triggerUploadCompleted(elementId);
}.bind(this));
},
......@@ -876,7 +877,8 @@ M.form_dndupload.init = function(Y, options) {
*/
notifyUploadStarted: function() {
require(['core_form/events'], function(FormEvent) {
FormEvent.notifyUploadStarted(this.filemanagerhelper.filemanager.get('id'));
const elementId = this.filemanagerhelper ? this.filemanagerhelper.filemanager.get('id') : this.options.containerid;
FormEvent.triggerUploadStarted(elementId);
}.bind(this));
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment