mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix web socket attachment to session object
This commit is contained in:
parent
d9dac5269d
commit
6e4a7594fc
4 changed files with 13 additions and 5 deletions
|
@ -112,7 +112,9 @@
|
|||
html += '</td>';
|
||||
|
||||
html += '<td class="username">';
|
||||
html += connection.UserName || '';
|
||||
if (connection.UserId) {
|
||||
html += '<a href="useredit.html?userid=' + connection.UserId + '">' + connection.UserName + '</a>';
|
||||
}
|
||||
html += '</td>';
|
||||
|
||||
var nowPlayingItem = connection.NowPlayingItem;
|
||||
|
@ -138,7 +140,11 @@
|
|||
|
||||
row.removeClass('deadSession');
|
||||
|
||||
$('.username', row).html(session.UserName || '');
|
||||
if (session.UserId) {
|
||||
$('.username', row).html('<a href="useredit.html?userid=' + session.UserId + '">' + session.UserName + '</a>').trigger('create');
|
||||
} else {
|
||||
$('.username', row).html('');
|
||||
}
|
||||
|
||||
var nowPlayingItem = session.NowPlayingItem;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue