MDL-31901 fixed forgotten overwrite dialogue in filepicker

This commit is contained in:
Marina Glancy
2012-05-21 11:57:55 +08:00
parent fc4e8034fc
commit 16dfd717f7
+4
View File
@@ -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();