mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update remove from playlist, collection id
This commit is contained in:
parent
79240b1a24
commit
17cb2f5da1
9 changed files with 59 additions and 22 deletions
|
@ -1125,7 +1125,7 @@
|
|||
html += '<button class="btnAddToCollection autoSize" type="button" is="paper-icon-button-light" style="margin-left:1em;"><i class="md-icon" icon="add">add</i></button>';
|
||||
html += '</div>';
|
||||
|
||||
html += '<div is="emby-itemscontainer" class="detailSectionContent itemsContainer" data-collectionid="' + parentItem.Id + '">';
|
||||
html += '<div is="emby-itemscontainer" class="detailSectionContent itemsContainer">';
|
||||
|
||||
var shape = type.type == 'MusicAlbum' ? 'detailPageSquare' : 'detailPagePortrait';
|
||||
|
||||
|
@ -1138,7 +1138,8 @@
|
|||
showDetailsMenu: true,
|
||||
overlayMoreButton: true,
|
||||
showAddToCollection: false,
|
||||
showRemoveFromCollection: true
|
||||
showRemoveFromCollection: true,
|
||||
collectionId: parentItem.Id
|
||||
});
|
||||
html += '</div>';
|
||||
|
||||
|
|
|
@ -810,6 +810,13 @@
|
|||
});
|
||||
}
|
||||
|
||||
if (options.collectionId) {
|
||||
atts.push({
|
||||
name: 'collectionid',
|
||||
value: options.collectionId
|
||||
});
|
||||
}
|
||||
|
||||
return atts;
|
||||
},
|
||||
|
||||
|
|
|
@ -68,12 +68,12 @@
|
|||
playFromHere: true,
|
||||
action: 'playallfromhere',
|
||||
smallIcon: true,
|
||||
dragHandle: true
|
||||
dragHandle: true,
|
||||
playlistId: item.Id
|
||||
});
|
||||
}
|
||||
|
||||
var elem = page.querySelector('#childrenContent .itemsContainer');
|
||||
elem.setAttribute('data-playlistid', item.Id);
|
||||
elem.innerHTML = html;
|
||||
|
||||
ImageLoader.lazyChildren(elem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue