Skip to content

Commit

Permalink
MDL-33920 filepicker: hide 'save as' field when not applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Jan 31, 2014
1 parent a7cae26 commit bc9f8dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions repository/filepicker.js
Expand Up @@ -1108,8 +1108,7 @@ M.core_filepicker.init = function(Y, options) {
for (var linktype in filelink) {
var el = selectnode.one('.fp-linktype-'+linktype);
el.addClassIf('uneditable', !(filelink[linktype] && filelinkcount>1));
el.one('input').set('disabled', (filelink[linktype] && filelinkcount>1) ? '' : 'disabled').
set('checked', (firstfilelink == linktype) ? 'checked' : '').simulate('change')
el.one('input').set('checked', (firstfilelink == linktype) ? 'checked' : '').simulate('change');
}

// TODO MDL-32532: attributes 'hasauthor' and 'haslicense' need to be obsolete,
Expand Down

0 comments on commit bc9f8dc

Please sign in to comment.