mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added manual server form
This commit is contained in:
parent
5257e91628
commit
c710303de9
9 changed files with 265 additions and 48 deletions
|
@ -19,6 +19,15 @@
|
|||
window.location = 'index.html';
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSignIn:
|
||||
{
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
window.location = 'connectlogin.html?mode=serversignin&serverid=' + result.Servers[0].Id;
|
||||
} else {
|
||||
showServerConnectionFailure();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
showServerConnectionFailure();
|
||||
break;
|
||||
|
@ -326,11 +335,19 @@
|
|||
|
||||
function loadInvitations(page) {
|
||||
|
||||
ConnectionManager.getUserInvitations().done(function (list) {
|
||||
if (ConnectionManager.isLoggedIntoConnect()) {
|
||||
|
||||
renderInvitations(page, list);
|
||||
ConnectionManager.getUserInvitations().done(function (list) {
|
||||
|
||||
renderInvitations(page, list);
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
renderInvitations(page, []);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function loadPage(page) {
|
||||
|
@ -345,6 +362,14 @@
|
|||
});
|
||||
|
||||
loadInvitations(page);
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
$('.newServer', page).show();
|
||||
$('.connectLogin', page).show();
|
||||
} else {
|
||||
$('.newServer', page).hide();
|
||||
$('.connectLogin', page).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#selectServerPage", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue