mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
21 lines
556 B
JavaScript
21 lines
556 B
JavaScript
(function ($, document) {
|
|
|
|
window.PlaylistManager = {
|
|
|
|
showPanel: function (items) {
|
|
|
|
require(['playlisteditor'], function (playlisteditor) {
|
|
new playlisteditor().show(items);
|
|
});
|
|
},
|
|
|
|
supportsPlaylists: function (item) {
|
|
|
|
if (item.Type == 'Program') {
|
|
return false;
|
|
}
|
|
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
|
|
}
|
|
};
|
|
|
|
})(jQuery, document); |