Permalink
Browse files

MDL-31901 fixed forgotten overwrite dialogue in filepicker

  • Loading branch information...
1 parent fc4e803 commit 16dfd717f7a37877edbc46b8f24d870c5045f191 @marinaglancy marinaglancy committed May 16, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 repository/filepicker.js
View
4 repository/filepicker.js
@@ -1082,6 +1082,10 @@ M.core_filepicker.init = function(Y, options) {
},
callback: function(id, obj, args) {
selectnode.removeClass('loading');
+ if (obj.event == 'fileexists') {
+ scope.process_existing_file(obj);
+ return;
+ }
if (scope.options.editor_target && scope.options.env=='editor') {
scope.options.editor_target.value=obj.url;
scope.options.editor_target.onchange();

0 comments on commit 16dfd71

Please sign in to comment.