Permalink
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...
1 parent cb28940 commit 2df5a982993351e56ded0a6ed29a153d89dc5b72 @jamiepratt jamiepratt committed with Sam Hemelryk Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/filepicker.js
View
@@ -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};

0 comments on commit 2df5a98

Please sign in to comment.