jellyfin-web/dashboard-ui/scripts/playlistmanager.js
2016-02-17 21:55:15 -05:00

20 lines
518 B
JavaScript

define([], function () {
return {
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";
}
};
});