mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added play buttons to song table
This commit is contained in:
parent
3dc52fabbc
commit
7d55230e20
5 changed files with 111 additions and 50 deletions
|
@ -472,7 +472,7 @@
|
|||
|
||||
var item = items[i];
|
||||
|
||||
html += '<a class="posterItem backdropPosterItem" href="#" onclick="ItemDetailPage.playById(\'' + item.Id + '\');">';
|
||||
html += '<a class="posterItem backdropPosterItem" href="#" onclick="MediaPlayer.playById(\'' + item.Id + '\');">';
|
||||
|
||||
var imageTags = item.ImageTags || {};
|
||||
|
||||
|
@ -618,12 +618,6 @@
|
|||
var self = this;
|
||||
|
||||
self.play = play;
|
||||
|
||||
self.playById = function (id) {
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) {
|
||||
MediaPlayer.play([item]);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
window.ItemDetailPage = new itemDetailPage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue