1
0
Fork 0
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:
Luke Pulverenti 2016-07-20 16:45:50 -04:00
parent 79240b1a24
commit 17cb2f5da1
9 changed files with 59 additions and 22 deletions

View file

@ -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>';

View file

@ -810,6 +810,13 @@
});
}
if (options.collectionId) {
atts.push({
name: 'collectionid',
value: options.collectionId
});
}
return atts;
},

View file

@ -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);