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.
This commit is contained in:
Jamie Pratt
2011-09-21 13:15:23 +07:00
parent 913b3cb30c
commit 1ae299f5f3
+1 -1
View File
@@ -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};