diff options
Diffstat (limited to 'cockpit/js')
| -rw-r--r-- | cockpit/js/student-common.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cockpit/js/student-common.js b/cockpit/js/student-common.js index 3938380..991876d 100644 --- a/cockpit/js/student-common.js +++ b/cockpit/js/student-common.js @@ -35,7 +35,12 @@ async function fetchStudents(nameFilter, groupFilter) { } const nameCell = row.querySelector(".c1"); - const name = nameCell.firstChild.firstChild.title; + let name; + if (nameCell.firstChild.firstChild.tagName == "SPAN") + name = nameCell.firstChild.firstChild.title; + else + name = nameCell.innerText; + const profileUrl = nameCell.querySelector("a.aabtn").href; const match = idRegex.exec(profileUrl); const id = match[1]; |
