2014-08-02 19:16:37 -07:00
|
|
|
|
(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
|
|
|
|
});
|
2014-08-02 19:16:37 -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";
|
2014-08-02 19:16:37 -07:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
})(jQuery, document);
|