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

update translations

This commit is contained in:
Luke Pulverenti 2014-07-20 00:46:29 -04:00
parent c944079976
commit 640fc18b21
80 changed files with 2365 additions and 1909 deletions

View file

@ -176,7 +176,7 @@ var Dashboard = {
Dashboard.lastSystemInfo = info;
Dashboard.ensureWebSocket(info);
Dashboard.ensureWebSocket();
if (!Dashboard.initialServerVersion) {
Dashboard.initialServerVersion = info.Version;
@ -682,10 +682,6 @@ var Dashboard = {
name: Globalize.translate('TabServer'),
href: "dashboard.html",
selected: page.hasClass("dashboardHomePage")
}, {
name: Globalize.translate('TabUsers'),
href: "userprofiles.html",
selected: page.hasClass("userProfilesConfigurationPage") || (pageElem.id == "mediaLibraryPage" && getParameterByName('userId'))
}, {
name: Globalize.translate('TabLibrary'),
divider: true,
@ -728,7 +724,7 @@ var Dashboard = {
},
ensureWebSocket: function (systemInfo) {
ensureWebSocket: function () {
if (!("WebSocket" in window)) {
// Not supported by the browser
@ -739,20 +735,12 @@ var Dashboard = {
return;
}
systemInfo = systemInfo || Dashboard.lastSystemInfo;
var location = window.location;
var webSocketUrl = "ws://" + location.hostname;
if (systemInfo.HttpServerPortNumber == systemInfo.WebSocketPortNumber) {
if (location.port) {
webSocketUrl += ':' + location.port;
}
} else {
webSocketUrl += ':' + systemInfo.WebSocketPortNumber;
if (location.port) {
webSocketUrl += ':' + location.port;
}
ApiClient.openWebSocket(webSocketUrl);