Skip to content

Commit

Permalink
MDL-33444 Upload repository can specify custom label for filepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and Sam Hemelryk committed Jul 10, 2012
1 parent 2eb66f3 commit 68ea10b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repository/filepicker.js
Expand Up @@ -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');
Expand Down

0 comments on commit 68ea10b

Please sign in to comment.