js: uppercased username when creating course name
This commit is contained in:
parent
f4bea69ddd
commit
308bd1f72e
|
@ -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);
|
||||
}
|
||||
|
|
Reference in New Issue