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