Skip to content

Commit

Permalink
example-multipleServers-pretty now shows an error when no servers are…
Browse files Browse the repository at this point in the history
… available
  • Loading branch information
adolfintel committed Feb 14, 2021
1 parent 53fb62e commit a3b20ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions example-multipleServers-pretty.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@
}
function selectServer(){ //called after loading server list
s.selectServer(function(server){ //run server selection. When the server has been selected, display it in the UI
I("startStopBtn").style.display=""; //show start/stop button again
I("serverId").textContent=server.name; //show name of test server
if(server==null){
I("serverId").textContent="No servers available";
}else{
I("startStopBtn").style.display=""; //show start/stop button again
I("serverId").textContent=server.name; //show name of test server
}
});
}
function loadServers(){ //called when the page is fully loaded
Expand Down

0 comments on commit a3b20ba

Please sign in to comment.