mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
changed queue to have it's own menu on item details
This commit is contained in:
parent
ba196ca640
commit
e579e0a6b6
3 changed files with 36 additions and 10 deletions
|
@ -38,9 +38,13 @@
|
|||
if (MediaPlayer.canPlay(item)) {
|
||||
$('#btnPlayMenu', page).show();
|
||||
$('#playButtonShadow', page).show();
|
||||
//$('#btnQueueMenu', page).show();
|
||||
//$('#queueButtonShadow', page).show();
|
||||
} else {
|
||||
$('#btnPlayMenu', page).hide();
|
||||
$('#playButtonShadow', page).hide();
|
||||
$('#btnQueueMenu', page).hide();
|
||||
$('#queueButtonShadow', page).hide();
|
||||
}
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
@ -474,8 +478,7 @@
|
|||
|
||||
var userdata = currentItem.UserData || {};
|
||||
|
||||
//always pop menu now so we can have a queue link
|
||||
//if (userdata.PlaybackPositionTicks) {
|
||||
if (userdata.PlaybackPositionTicks) {
|
||||
|
||||
var pos = $('#playMenuAnchor', page).offset();
|
||||
|
||||
|
@ -484,12 +487,22 @@
|
|||
y: pos.top + 20
|
||||
});
|
||||
|
||||
//}
|
||||
//else {
|
||||
// play();
|
||||
//}
|
||||
}
|
||||
else {
|
||||
play();
|
||||
}
|
||||
});
|
||||
|
||||
$('#btnQueueMenu', page).on('click', function () {
|
||||
var pos = $('#queueMenuAnchor', page).offset();
|
||||
|
||||
$('#queueMenu', page).popup("open", {
|
||||
x: pos.left + 165,
|
||||
y: pos.top + 20
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('#btnPlay', page).on('click', function () {
|
||||
|
||||
$('#playMenu', page).popup("close");
|
||||
|
@ -507,7 +520,7 @@
|
|||
|
||||
$('#btnQueue', page).on('click', function () {
|
||||
|
||||
$('#playMenu', page).popup("close");
|
||||
$('#queueMenu', page).popup("close");
|
||||
Playlist.add(currentItem);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue