mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix fullscreen button with IE
This commit is contained in:
parent
c5802fc5ab
commit
3114742ab7
18 changed files with 125 additions and 176 deletions
|
@ -102,19 +102,17 @@
|
|||
|
||||
var serverId = getParameterByName('serverid');
|
||||
|
||||
// In a multi-server supported app, set the server address
|
||||
if (serverId) {
|
||||
Dashboard.serverAddress(apiClient.serverAddress());
|
||||
}
|
||||
|
||||
Dashboard.setCurrentUser(user.Id, result.AccessToken);
|
||||
var newUrl;
|
||||
|
||||
if (user.Policy.IsAdministrator && !serverId) {
|
||||
window.location.href = "dashboard.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
newUrl = "dashboard.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
} else {
|
||||
window.location.href = "index.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
newUrl = "index.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
}
|
||||
|
||||
Dashboard.onLoggedIn(apiClient.serverAddress(), user.Id, result.AccessToken, apiClient);
|
||||
Dashboard.navigate(newUrl);
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
$('#pw', '#loginPage').val('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue