jellyfin-web/dashboard-ui/scripts/playlistmanager.js

23 lines
602 B
JavaScript
Raw Normal View History

2016-02-17 19:55:15 -07:00
define([], function () {
2016-02-17 19:55:15 -07:00
return {
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;
}
2016-05-06 11:17:02 -07:00
if (item.Type == 'Timer') {
return false;
}
2014-12-18 21:20:07 -07:00
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
}
};
2016-02-17 19:55:15 -07:00
});