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

fixes #791 - Support server-side playlists

This commit is contained in:
Luke Pulverenti 2014-08-02 22:16:37 -04:00
parent cd1e583fa7
commit ba247c8a15
33 changed files with 1131 additions and 716 deletions

View file

@ -231,7 +231,7 @@
function getTopParentId() {
return getParameterByName('topParentId') || sessionStore.getItem('topParentId') || null;
return getParameterByName('topParentId') /*|| sessionStore.getItem('topParentId')*/ || null;
}
window.LibraryMenu = {
@ -298,18 +298,22 @@
});
$('.scopedLibraryViewNav a', page).each(function () {
var context = getParameterByName('context');
var src = this.href;
if (context !== 'playlists') {
$('.scopedLibraryViewNav a', page).each(function () {
if (src.indexOf('#') != -1) {
return;
}
var src = this.href;
src = replaceQueryString(src, 'topParentId', id);
if (src.indexOf('#') != -1) {
return;
}
this.href = src;
});
src = replaceQueryString(src, 'topParentId', id);
this.href = src;
});
}
}
function updateContextText(page) {