Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-27919 Fixed a regression where I was seeing that after choosing "…

…Overwrite"

in a filemanager form component when subsequently trying to add another file the
file picker would then immediately close upon opening.
  • Loading branch information...
commit 2df5a982993351e56ded0a6ed29a153d89dc5b72 1 parent cb28940
@jamiepratt jamiepratt authored samhemelryk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  repository/filepicker.js
View
2  repository/filepicker.js
@@ -211,7 +211,7 @@ M.core_filepicker.init = function(Y, options) {
if (scope.options.editor_target && scope.options.env == 'editor') {
scope.options.editor_target.value = data.existingfile.url;
scope.options.editor_target.onchange();
- } else {
+ } else if (scope.options.env === 'filepicker') {
var fileinfo = {'client_id':client_id,
'url':data.existingfile.url,
'file':data.existingfile.filename};
Please sign in to comment.
Something went wrong with that request. Please try again.