diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js index 2eb5c93977..4869388769 100644 --- a/dashboard-ui/scripts/itembynamedetailpage.js +++ b/dashboard-ui/scripts/itembynamedetailpage.js @@ -470,7 +470,7 @@ $('#btnRemote', page).on('click', function () { - RemoteControl.showMenu(page, currentItem); + RemoteControl.showMenu(page, currentItem, getParameterByName('context') || ''); }); }).on('pageshow', "#itemByNameDetailPage", function () { diff --git a/dashboard-ui/scripts/remotecontrol.js b/dashboard-ui/scripts/remotecontrol.js index d69c170dc5..7291818a02 100644 --- a/dashboard-ui/scripts/remotecontrol.js +++ b/dashboard-ui/scripts/remotecontrol.js @@ -95,12 +95,12 @@ return s.DeviceId != deviceId; }); - renderSessions(sessions, response2[0], elem); + renderSessions(sessions, response2[0], item, elem); }); } - function renderSessions(sessions, users, elem) { + function renderSessions(sessions, users, item, elem) { if (!sessions.length) { elem.html('
There are currently no available media browser sessions to control.
'); @@ -114,7 +114,11 @@ html += ''; html += ''; html += '';