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

21 lines
556 B
JavaScript
Raw Normal View History

(function ($, document) {
window.PlaylistManager = {
showPanel: function (items) {
2015-09-05 14:05:29 -04:00
2015-10-14 10:47:38 -04:00
require(['playlisteditor'], function (playlisteditor) {
new playlisteditor().show(items);
2015-09-05 14:05:29 -04:00
});
},
supportsPlaylists: function (item) {
2015-04-11 21:38:38 -04:00
if (item.Type == 'Program') {
return false;
}
2014-12-18 23:20:07 -05:00
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
}
};
})(jQuery, document);