1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

support opening remote control menu from dashboard

This commit is contained in:
Luke Pulverenti 2013-12-26 14:24:12 -05:00
parent 6e4a7594fc
commit 80df2d3d84
3 changed files with 26 additions and 12 deletions

View file

@ -85,6 +85,8 @@
var table = $('.tblConnections', page);
$('.trSession', table).addClass('deadSession');
var deviceId = ApiClient.deviceId();
for (var i = 0, length = dashboardInfo.ActiveConnections.length; i < length; i++) {
@ -106,7 +108,16 @@
html += '</td>';
html += '<td>';
html += '<div>' + connection.Client + '</div>';
html += '<div>';
if (deviceId == connection.DeviceId) {
html += connection.Client;
} else {
html += '<a href="#" onclick="RemoteControl.showMenu({sessionId:\'' + connection.Id + '\'});">' + connection.Client + '</a>';
}
html += '</div>';
html += '<div>' + connection.ApplicationVersion + '</div>';
html += '<div>' + connection.DeviceName + '</div>';
html += '</td>';