mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-33444 Upload repository can specify custom label for filepicker
This commit is contained in:
parent
2cbdaa77ea
commit
6133c2ea21
1 changed files with 3 additions and 0 deletions
|
@ -1625,6 +1625,9 @@ M.core_filepicker.init = function(Y, options) {
|
||||||
});
|
});
|
||||||
content.one('form').set('id', id);
|
content.one('form').set('id', id);
|
||||||
content.one('.fp-file input').set('name', 'repo_upload_file');
|
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-saveas input').set('name', 'title');
|
||||||
content.one('.fp-setauthor input').setAttrs({name:'author', value:this.options.author});
|
content.one('.fp-setauthor input').setAttrs({name:'author', value:this.options.author});
|
||||||
content.one('.fp-setlicense select').set('name', 'license');
|
content.one('.fp-setlicense select').set('name', 'license');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue