Merge branch 'wip-MDL-33920-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE

This commit is contained in:
Sam Hemelryk
2014-02-04 10:47:04 +13:00
+1 -2
View File
@@ -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,