fixed display of username; fixed nodejs build on old systems

This commit is contained in:
Marc Wäckerlin
2016-11-25 15:04:31 +00:00
parent ae748014a7
commit 7a49c21d0e
6 changed files with 2055 additions and 1615 deletions

View File

@@ -103,7 +103,7 @@ function emit(signal, data) {
}
function connect() {
$("#server").html($("#username").val()+'@'+window.location.hostname)
$("#server").html($("#usernamefield").val()+'@'+window.location.hostname)
console.log("server connect");
$("#connectionstatus #bad").hide();
$("#connectionstatus #authentication").show();
@@ -116,7 +116,7 @@ function connect() {
}
function authenticated() {
$("#server").html($("#username").val()+'@'+window.location.hostname)
$("#server").html($("#usernamefield").val()+'@'+window.location.hostname)
console.log("server authenticated");
$("#connectionstatus #bad").hide();
$("#connectionstatus #authentication").hide();
@@ -126,7 +126,7 @@ function authenticated() {
}
function unauthorized() {
$("#server").html($("#username").val()+'@'+window.location.hostname)
$("#server").html($("#usernamefield").val()+'@'+window.location.hostname)
console.log("authentication failed");
$("#connectionstatus #good").hide();
$("#connectionstatus #authentication").hide();
@@ -135,7 +135,7 @@ function unauthorized() {
}
function disconnected() {
$("#server").html($("#username").val()+'@'+window.location.hostname)
$("#server").html($("#usernamefield").val()+'@'+window.location.hostname)
console.log("server disconnected");
$("#connectionstatus #good").hide();
$("#connectionstatus #authentication").hide();
@@ -527,7 +527,7 @@ function initForms() {
function init() {
socket = io.connect();
docker = new Docker(socket, '#main', error);
$("#server").html($("#username").value+'@'+window.location.hostname)
$("#server").html($("#usernamefield").value+'@'+window.location.hostname)
initForms();
showLogin();
socket