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

support more dlna resource properties

This commit is contained in:
Luke Pulverenti 2014-04-18 13:16:25 -04:00
parent 76f79c27e5
commit ec163807cf
4 changed files with 16 additions and 8 deletions

View file

@ -209,7 +209,7 @@
var nowPlayingItem = connection.NowPlayingItem;
var className = nowPlayingItem ? 'activeSession' : 'notPlayingSession activeSession';
var className = nowPlayingItem ? 'playingSession activeSession' : 'activeSession';
html += '<div class="' + className + '" id="' + rowId + '">';
@ -400,9 +400,9 @@
var nowPlayingItem = session.NowPlayingItem;
if (nowPlayingItem) {
row.removeClass('notPlayingSession');
row.addClass('playingSession');
} else {
row.addClass('notPlayingSession');
row.removeClass('playingSession');
}
$('.sessionUserName', row).html(DashboardPage.getUsersHtml(session));
@ -877,8 +877,8 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageh
return this;
}
return this.off('.sessionItemMenu').on('mouseenter.sessionItemMenu', '.activeSession', onHoverIn)
.on('mouseleave.sessionItemMenu', '.activeSession', onHoverOut);
return this.off('.sessionItemMenu').on('mouseenter.sessionItemMenu', '.playingSession', onHoverIn)
.on('mouseleave.sessionItemMenu', '.playingSession', onHoverOut);
};
})(jQuery, document, window);

View file

@ -12,6 +12,8 @@
$('#chkAllowUpscaling', page).checked(config.AllowVideoUpscaling).checkboxradio("refresh");
$('#txtDownMixAudioBoost', page).val(config.DownMixAudioBoost);
Dashboard.hideLoadingMsg();
}
@ -41,6 +43,7 @@
config.AllowVideoUpscaling = $('#chkAllowUpscaling', form).checked();
config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
});