mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
fixes #422 - Bring up remote control window on web client when you remote play an item
This commit is contained in:
parent
59e6ff41c0
commit
394887de50
@ -55,14 +55,14 @@
|
|||||||
|
|
||||||
html += '<p style="text-align:center;margin:.75em 0 0;">';
|
html += '<p style="text-align:center;margin:.75em 0 0;">';
|
||||||
|
|
||||||
html += '<span id="browseButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'Browse\');" type="submit" data-icon="arrow-right" data-theme="b" data-mini="true" data-inline="true">Browse</button></span>';
|
|
||||||
|
|
||||||
html += '<span id="playButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'PlayNow\');" type="submit" data-icon="play" data-theme="b" data-mini="true" data-inline="true">Play</button></span>';
|
html += '<span id="playButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'PlayNow\');" type="submit" data-icon="play" data-theme="b" data-mini="true" data-inline="true">Play</button></span>';
|
||||||
|
|
||||||
html += '<span id="resumeButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'Resume\');" type="submit" data-icon="play" data-theme="b" data-mini="true" data-inline="true">Resume</button></span>';
|
html += '<span id="resumeButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'Resume\');" type="submit" data-icon="play" data-theme="b" data-mini="true" data-inline="true">Resume</button></span>';
|
||||||
|
|
||||||
html += '<span id="queueButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'PlayLast\');" type="submit" data-icon="plus" data-theme="b" data-mini="true" data-inline="true">Queue</button></span>';
|
html += '<span id="queueButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'PlayLast\');" type="submit" data-icon="plus" data-theme="b" data-mini="true" data-inline="true">Queue</button></span>';
|
||||||
|
|
||||||
|
html += '<span id="browseButtonContainer" style="display:none;"><button onclick="$(\'#fldPlayCommand\').val(\'Browse\');" type="submit" data-icon="arrow-right" data-theme="b" data-mini="true" data-inline="true">Browse</button></span>';
|
||||||
|
|
||||||
html += '<button type="button" data-icon="delete" onclick="$(\'#remoteControlFlyout\').popup(\'close\');" data-theme="a" data-mini="true" data-inline="true">Cancel</button>';
|
html += '<button type="button" data-icon="delete" onclick="$(\'#remoteControlFlyout\').popup(\'close\');" data-theme="a" data-mini="true" data-inline="true">Cancel</button>';
|
||||||
|
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
@ -126,6 +126,7 @@
|
|||||||
var command = $('#selectCommand', popup).val();
|
var command = $('#selectCommand', popup).val();
|
||||||
|
|
||||||
var promise;
|
var promise;
|
||||||
|
var showRemoteControlMenuAfterCommand = true;
|
||||||
|
|
||||||
if (command == "Play") {
|
if (command == "Play") {
|
||||||
|
|
||||||
@ -158,6 +159,8 @@
|
|||||||
Context: options.context
|
Context: options.context
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
showRemoteControlMenuAfterCommand = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
promise = ApiClient.sendPlayCommand(sessionIds[0], {
|
promise = ApiClient.sendPlayCommand(sessionIds[0], {
|
||||||
@ -200,6 +203,10 @@
|
|||||||
promise.done(function () {
|
promise.done(function () {
|
||||||
|
|
||||||
popup.popup("close");
|
popup.popup("close");
|
||||||
|
|
||||||
|
if (showRemoteControlMenuAfterCommand) {
|
||||||
|
RemoteControl.showMenu();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user