From 394887de50e11604fc4aa1e3e787ed4d5fa252a3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 27 Aug 2013 23:50:25 -0400 Subject: [PATCH] fixes #422 - Bring up remote control window on web client when you remote play an item --- dashboard-ui/scripts/remotecontrol.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/remotecontrol.js b/dashboard-ui/scripts/remotecontrol.js index 82c9335d89..eef917a30b 100644 --- a/dashboard-ui/scripts/remotecontrol.js +++ b/dashboard-ui/scripts/remotecontrol.js @@ -55,14 +55,14 @@ html += '

'; - html += ''; - html += ''; html += ''; html += ''; + html += ''; + html += ''; html += '

'; @@ -126,6 +126,7 @@ var command = $('#selectCommand', popup).val(); var promise; + var showRemoteControlMenuAfterCommand = true; if (command == "Play") { @@ -158,6 +159,8 @@ Context: options.context }); + + showRemoteControlMenuAfterCommand = false; } else { promise = ApiClient.sendPlayCommand(sessionIds[0], { @@ -200,6 +203,10 @@ promise.done(function () { popup.popup("close"); + + if (showRemoteControlMenuAfterCommand) { + RemoteControl.showMenu(); + } }); return false;