MDL-26989 fix incorrect disabling of assignable roles

This commit is contained in:
Nikhil Gupta 2011-03-27 20:34:15 +02:00 committed by Petr Skoda
parent 92a387b467
commit d099348e32

View File

@ -391,7 +391,7 @@ YUI.add('moodle-enrol-rolemanager', function(Y) {
}
var node = null;
for (var i in this.roles) {
if (node = this.get('contentNode').one('#add_assignable_role_'+i)) {
if (node = this.get('contentNode').one('#add_assignable_role_'+this.roles[i])) {
node.removeAttribute('disabled');
}
}