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

added "add to queue" button and playlist link to now playing bar.

This commit is contained in:
Techywarrior 2013-04-10 22:42:34 -07:00
parent 5944d7f48c
commit ba196ca640
5 changed files with 16 additions and 9 deletions

View file

@ -474,7 +474,8 @@
var userdata = currentItem.UserData || {};
if (userdata.PlaybackPositionTicks) {
//always pop menu now so we can have a queue link
//if (userdata.PlaybackPositionTicks) {
var pos = $('#playMenuAnchor', page).offset();
@ -483,10 +484,10 @@
y: pos.top + 20
});
}
else {
play();
}
//}
//else {
// play();
//}
});
$('#btnPlay', page).on('click', function () {
@ -504,6 +505,12 @@
play(userdata.PlaybackPositionTicks);
});
$('#btnQueue', page).on('click', function () {
$('#playMenu', page).popup("close");
Playlist.add(currentItem);
});
}).on('pageshow', "#itemDetailPage", function () {
var page = this;