mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hls updates
This commit is contained in:
parent
bbdbdf346e
commit
9fc4c86111
19 changed files with 255 additions and 246 deletions
|
@ -1,18 +1,13 @@
|
|||
(function () {
|
||||
|
||||
function onLoggedIn() {
|
||||
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
Dashboard.navigate('selectserver.html');
|
||||
}
|
||||
|
||||
function login(page, username, password) {
|
||||
|
||||
Dashboard.showModalLoadingMsg();
|
||||
|
||||
ConnectionManager.loginToConnect(username, password).done(function () {
|
||||
|
||||
onLoggedIn();
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
Dashboard.navigate('selectserver.html');
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
|
@ -39,7 +34,7 @@
|
|||
{
|
||||
var apiClient = result.ApiClient;
|
||||
|
||||
Dashboard.onServerChanged(apiClient.serverAddress(), apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
|
||||
Dashboard.onServerChanged(apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
|
||||
Dashboard.navigate('index.html');
|
||||
}
|
||||
break;
|
||||
|
@ -50,7 +45,7 @@
|
|||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSelection:
|
||||
{
|
||||
onLoggedIn();
|
||||
Dashboard.navigate('selectserver.html');
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.ConnectSignIn:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue