Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4e803
)
MDL-31901 fixed forgotten overwrite dialogue in filepicker
author
Marina Glancy
<marina@moodle.com>
Wed, 16 May 2012 07:05:14 +0000
(15:05 +0800)
committer
Marina Glancy
<marina@moodle.com>
Mon, 21 May 2012 03:57:55 +0000
(11:57 +0800)
repository/filepicker.js
patch
|
blob
|
blame
|
history
diff --git
a/repository/filepicker.js
b/repository/filepicker.js
index
7417f7a
..
9c37b03
100644
(file)
--- a/
repository/filepicker.js
+++ b/
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();