Permalink
Browse files

Merge branch 'MDL-29692' of git://git.luns.net.uk/moodle into MOODLE_…

…21_STABLE
  • Loading branch information...
2 parents b15dee2 + dfdef4a commit 27625e0fca4723edc20ae73ea56b8cb2cfb22e70 Sam Hemelryk committed Oct 10, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 enrol/cohort/yui/quickenrolment/quickenrolment.js
@@ -122,11 +122,7 @@ YUI.add('moodle-enrol_cohort-quickenrolment', function(Y) {
break;
case 'defaultcohortroleloaded':
defaultrole = this.get(DEFAULTCOHORTROLE);
- panel.get('contentBox').one('.'+CSS.PANELROLES).all('option').each(function(){
- if (this.get('value')==defaultrole) {
- this.setAttribute('selected', true);
- }
- });
+ panel.get('contentBox').one('.'+CSS.PANELROLES+' select').set('value', defaultrole);
break;
}
},

0 comments on commit 27625e0

Please sign in to comment.