mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated bravia profiles
This commit is contained in:
parent
1d66f5e9a3
commit
3a20f6af21
8 changed files with 158 additions and 20 deletions
|
@ -56,6 +56,14 @@
|
|||
loadMode(page, 'welcome');
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.Unavailable:
|
||||
{
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate("MessageUnableToConnectToServer"),
|
||||
title: Globalize.translate("HeaderConnectionFailure")
|
||||
});
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -76,9 +84,9 @@
|
|||
|
||||
function loadPage(page) {
|
||||
|
||||
var mode = getParameterByName('mode');
|
||||
var mode = getParameterByName('mode') || 'auto';
|
||||
|
||||
if (!mode) {
|
||||
if (mode == 'auto') {
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
loadAppConnection(page);
|
||||
|
@ -91,6 +99,9 @@
|
|||
}
|
||||
function loadMode(page, mode) {
|
||||
|
||||
$(document.body).prepend('<div class="backdropContainer" style="background-image:url(css/images/splash.jpg);top:0;"></div>');
|
||||
$(page).addClass('lightBackdropPage backdropPage staticBackdropPage');
|
||||
|
||||
if (mode == 'welcome') {
|
||||
$('.connectLoginForm', page).hide();
|
||||
$('.welcomeContainer', page).show();
|
||||
|
@ -145,6 +156,14 @@
|
|||
|
||||
handleConnectionResult(page, result);
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
handleConnectionResult(page, {
|
||||
State: MediaBrowser.ConnectionState.Unavailable
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue