js: uppercased username when creating course name

This commit is contained in:
Benjamin Dauvergne 2012-12-06 16:58:58 +01:00
parent f4bea69ddd
commit 308bd1f72e
1 changed files with 3 additions and 2 deletions

View File

@ -60,9 +60,10 @@
if (item == undefined) {
$name.val('');
} else {
var name = item.code.toUpperCase()+'_'+'{{course_year}}'+'_'+'{{user.username}}';
var username = '{{user.username}}';
var name = item.code.toUpperCase()+'_'+'{{course_year}}'+'_'+username.toUpperCase();
if (td_group) {
name += '_' + td_group;
name += '_' + td_group.toUpperCase();
}
$name.val(name);
}