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

updated nuget

This commit is contained in:
Luke Pulverenti 2014-08-06 00:18:13 -04:00
parent 7d87624880
commit 230add1e17
3 changed files with 35 additions and 4 deletions

View file

@ -759,7 +759,7 @@
var atts = [];
var itemCommands = LibraryBrowser.getItemCommands(item);
var itemCommands = LibraryBrowser.getItemCommands(item, options);
atts.push('data-itemid="' + item.Id + '"');
atts.push('data-commands="' + itemCommands.join(',') + '"');
@ -784,7 +784,7 @@
return html;
},
getItemCommands: function (item) {
getItemCommands: function (item, options) {
var itemCommands = [];
@ -809,7 +809,12 @@
}
if (PlaylistManager.supportsPlaylists(item)) {
itemCommands.push('playlist');
if (options.showRemoveFromPlaylist) {
itemCommands.push('removefromplaylist');
} else {
itemCommands.push('playlist');
}
}
return itemCommands;