fixed display of username; fixed nodejs build on old systems
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user