Skip to content

Commit

Permalink
MDL-27919 Fixed a regression where I was seeing that after choosing "…
Browse files Browse the repository at this point in the history
…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
jamiepratt committed Sep 21, 2011
1 parent 913b3cb commit 1ae299f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/filepicker.js
Expand Up @@ -211,7 +211,7 @@ M.core_filepicker.init = function(Y, options) {
if (scope.options.editor_target && scope.options.env == 'editor') { if (scope.options.editor_target && scope.options.env == 'editor') {
scope.options.editor_target.value = data.existingfile.url; scope.options.editor_target.value = data.existingfile.url;
scope.options.editor_target.onchange(); scope.options.editor_target.onchange();
} else { } else if (scope.options.env === 'filepicker') {
var fileinfo = {'client_id':client_id, var fileinfo = {'client_id':client_id,
'url':data.existingfile.url, 'url':data.existingfile.url,
'file':data.existingfile.filename}; 'file':data.existingfile.filename};
Expand Down

0 comments on commit 1ae299f

Please sign in to comment.