mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add last/next to playlist
This commit is contained in:
parent
a7c270d755
commit
6dfc031b41
3 changed files with 15 additions and 8 deletions
|
@ -395,11 +395,15 @@
|
|||
};
|
||||
|
||||
self.playLast = function (itemId) {
|
||||
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).done(function (item) {
|
||||
Playlist.add(item);
|
||||
});
|
||||
};
|
||||
|
||||
self.playNext = function (itemId) {
|
||||
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).done(function (item) {
|
||||
Playlist.playNext(item);
|
||||
});
|
||||
};
|
||||
|
||||
self.stop = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue