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:
2cbdaa7
)
MDL-33444 Upload repository can specify custom label for filepicker
author
Marina Glancy
<marina@moodle.com>
Wed, 4 Jul 2012 02:06:02 +0000
(10:06 +0800)
committer
Marina Glancy
<marina@moodle.com>
Fri, 6 Jul 2012 01:43:50 +0000
(09:43 +0800)
repository/filepicker.js
patch
|
blob
|
blame
|
history
diff --git
a/repository/filepicker.js
b/repository/filepicker.js
index
93e4490
..
d23f361
100644
(file)
--- a/
repository/filepicker.js
+++ b/
repository/filepicker.js
@@
-1625,6
+1625,9
@@
M.core_filepicker.init = function(Y, options) {
});
content.one('form').set('id', id);
content.one('.fp-file input').set('name', 'repo_upload_file');
+ if (data.upload.label && content.one('.fp-file label')) {
+ content.one('.fp-file label').setContent(data.upload.label);
+ }
content.one('.fp-saveas input').set('name', 'title');
content.one('.fp-setauthor input').setAttrs({name:'author', value:this.options.author});
content.one('.fp-setlicense select').set('name', 'license');