Change friendly name hover title text to username

This commit is contained in:
JonnyWong16 2020-09-29 20:07:23 -07:00
parent d9ece291b7
commit e3eca5af46
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
10 changed files with 25 additions and 16 deletions

View file

@ -51,9 +51,9 @@ sync_table_options = {
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') {
if (rowData['user_id']) {
$(td).html('<a href="' + page('user', rowData['user_id']) + '">' + cellData + '</a>');
$(td).html('<a href="' + page('user', rowData['user_id']) + '" title="' + rowData['username'] + '">' + cellData + '</a>');
} else {
$(td).html('<a href="' + page('user', null, rowData['user']) + '">' + cellData + '</a>');
$(td).html('<a href="' + page('user', null, rowData['user']) + '" title="' + rowData['username'] + '">' + cellData + '</a>');
}
} else {
$(td).html(cellData);