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

remove format indicators (temporarily)

This commit is contained in:
Luke Pulverenti 2014-03-13 15:08:17 -04:00
parent 2a8d8037f4
commit df515330ba
6 changed files with 8 additions and 23 deletions

View file

@ -461,13 +461,6 @@
}
}
var enableRibbons = false;
var user = Dashboard.getCurrentUser().done(function (data) {
if (data.Configuration) {
enableRibbons = data.Configuration.DisplayMovieFormatRibbons;
}
});
for (var i = 0, length = items.length; i < length; i++) {
var item = items[i];
@ -672,7 +665,7 @@
html += '<a data-itemid="' + item.Id + '" class="' + cssClass + '" href="' + LibraryBrowser.getHref(item, options.context) + '">';
// Ribbon
if (item.MediaType == "Video" && enableRibbons) {
if (item.MediaType == "Video" && item.Video3DFormat) {
// This would be much better if specified in the json payload
// Another nice thing to have in the payload would be 720 vs 1080
// Then, rather than "HD" it could display the specific HD format

View file

@ -92,9 +92,9 @@
html += '<a class="viewMenuLink viewMenuTextLink desktopViewMenuLink' + (view == 'games' ? selectedCssClass : '') + '" href="gamesrecommended.html">' + (view == 'games' ? selectedHtml : '') + '<span class="viewName">Games</span></a>';
}
if (counts.BoxSetCount) {
//if (counts.BoxSetCount) {
html += '<a class="viewMenuLink viewMenuTextLink desktopViewMenuLink' + (view == 'boxsets' ? selectedCssClass : '') + '" href="collections.html">' + (view == 'boxsets' ? selectedHtml : '') + '<span class="viewName">Collections</span></a>';
}
//}
$('.viewMenuRemoteControlButton', page).before(html);
}
@ -148,9 +148,9 @@
html += '<li><a class="libraryPanelLink" href="gamesrecommended.html">Games</a></li>';
}
if (counts.BoxSetCount) {
//if (counts.BoxSetCount) {
html += '<li><a class="libraryPanelLink" href="collections.html">Collections</a></li>';
}
//}
html += '</ul>';
html += '</div>';

View file

@ -27,8 +27,6 @@
$('#chkManageLiveTv', page).checked(user.Configuration.EnableLiveTvManagement || false).checkboxradio("refresh");
$('#chkEnableLiveTvAccess', page).checked(user.Configuration.EnableLiveTvAccess || false).checkboxradio("refresh");
$('#chkDisplayMovieFormatRibbons', page).checked(user.Configuration.DisplayMovieFormatRibbons || false).checkboxradio("refresh");
Dashboard.hideLoadingMsg();
}
@ -61,7 +59,6 @@
user.Configuration.EnableLiveTvManagement = $('#chkManageLiveTv', page).checked();
user.Configuration.EnableMediaPlayback = $('#chkEnableMediaPlayback', page).checked();
user.Configuration.EnableLiveTvAccess = $('#chkEnableLiveTvAccess', page).checked();
user.Configuration.DisplayMovieFormatRibbons = $('#chkDisplayMovieFormatRibbons', page).checked();
var userId = getParameterByName("userId");