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

fix for rendering empty links section

This commit is contained in:
Luke Pulverenti 2013-04-14 11:14:10 -04:00
parent a664275cf5
commit 421c559c2b
5 changed files with 43 additions and 86 deletions

View file

@ -42,7 +42,7 @@
} else {
$('#btnPlayMenu', page).hide();
$('#playButtonShadow', page).hide();
$('#btnQueueMenu', page).hide();
$('#btnQueueMenu', page).hide();
}
Dashboard.hideLoadingMsg();
@ -50,7 +50,7 @@
}
function setInitialCollapsibleState(page, item) {
if (!item.MediaStreams || !item.MediaStreams.length) {
$('#mediaInfoCollapsible', page).hide();
} else {
@ -110,17 +110,7 @@
LibraryBrowser.renderGenres($('#itemGenres', page), item);
LibraryBrowser.renderStudios($('#itemStudios', page), item);
renderUserDataIcons(page, item);
renderLinks(page, item);
}
function renderLinks(page, item) {
if (item.ProviderIds) {
$('#itemLinks', page).html(LibraryBrowser.getLinksHtml(item));
} else {
$('#itemLinks', page).hide();
}
LibraryBrowser.renderLinks($('#itemLinks', page), item);
}
function renderUserDataIcons(page, item) {
@ -465,7 +455,7 @@
$('#castContent', page).html(html);
}
function play(startPosition) {
MediaPlayer.play([currentItem], startPosition);
@ -494,14 +484,14 @@
}
});
$('#btnQueueMenu', page).on('click', function () {
var pos = $('#queueMenuAnchor', page).offset();
$('#btnQueueMenu', page).on('click', function () {
var pos = $('#queueMenuAnchor', page).offset();
$('#queueMenu', page).popup("open", {
x: pos.left + 165,
y: pos.top + 20
});
});
$('#queueMenu', page).popup("open", {
x: pos.left + 165,
y: pos.top + 20
});
});
$('#btnPlay', page).on('click', function () {
@ -515,15 +505,15 @@
$('#playMenu', page).popup("close");
var userdata = currentItem.UserData || {};
play(userdata.PlaybackPositionTicks);
});
$('#btnQueue', page).on('click', function () {
$('#btnQueue', page).on('click', function () {
$('#queueMenu', page).popup("close");
Playlist.add(currentItem);
});
$('#queueMenu', page).popup("close");
Playlist.add(currentItem);
});
}).on('pageshow', "#itemDetailPage", function () {
@ -584,7 +574,7 @@
$('#castCollapsible', page).off('expand.lazyload');
$('#galleryCollapsible', page).off('expand.lazyload');
});
function itemDetailPage() {
var self = this;