Move server URL to advanced options

This commit is contained in:
Simon Ser 2020-06-12 18:22:25 +02:00
parent ef23d44eed
commit b3bcd4d230
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 4 additions and 8 deletions

View file

@ -603,7 +603,6 @@ if (localStorage && localStorage.getItem("server")) {
server = JSON.parse(localStorage.getItem("server"));
connectFormElt.elements.url.value = server.url;
connectFormElt.elements.nick.value = server.nick;
connectFormElt.elements.password.value = server.pass;
if (server.username != server.nick) {
connectFormElt.elements.username.value = server.username;
}
@ -617,7 +616,6 @@ if (localStorage && localStorage.getItem("server")) {
var params = parseQueryString();
if (params.server) {
document.querySelector("#connect-url-container").style.display = "none";
connectFormElt.elements.url.value = params.server;
} else if (!connectFormElt.elements.url.value) {
var host = window.location.host || "localhost:8080";

View file

@ -26,12 +26,6 @@
<form>
<h2>Connect to IRC</h2>
<div id="connect-url-container">
<label for="connect-url">Server URL:</label><br/>
<input type="url" name="url" id="connect-url"/>
<br/><br/>
</div>
<label for="connect-nick">Nickname:</label><br/>
<input type="username" name="nick" id="connect-nick" autofocus required/>
<br/><br/>
@ -49,6 +43,10 @@
<br/>
<label for="connect-url">Server URL:</label><br/>
<input type="url" name="url" id="connect-url"/>
<br/><br/>
<label for="connect-username">Username:</label><br/>
<input type="username" name="username" id="connect-username" placeholder="Same as nickname"/>
<br/><br/>