mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
fix connexion problem with new users
This commit is contained in:
parent
788e43ba7a
commit
32459b4b5b
2 changed files with 9 additions and 4 deletions
|
@ -64,9 +64,9 @@
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div class="nav-button nav-link" id="user">
|
<div class="nav-button nav-link invisible" id="user">
|
||||||
<span><i class="fa fa-user dropbtn" aria-hidden="true"></i></span>
|
<span><i class="fa fa-user dropbtn" aria-hidden="true"></i></span>
|
||||||
<label>User</label>
|
<label>Profile</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="userDropdown" class="dropdown-content">
|
<div id="userDropdown" class="dropdown-content">
|
||||||
<div id="statdiv">
|
<div id="statdiv">
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
<input id="password" type="password" name="password"
|
<input id="password" type="password" name="password"
|
||||||
autocomplete="current-password" class="form-control"/>
|
autocomplete="current-password" class="form-control"/>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect" disabled/>
|
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
|
||||||
</form>
|
</form>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1063,6 +1063,7 @@ document.getElementById('openside').onclick = function(e) {
|
||||||
};
|
};
|
||||||
|
|
||||||
document.getElementById('user').onclick = function(e) {
|
document.getElementById('user').onclick = function(e) {
|
||||||
|
e.preventDefault();
|
||||||
document.getElementById("userDropdown").classList.toggle("show");
|
document.getElementById("userDropdown").classList.toggle("show");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1134,11 +1135,15 @@ function start() {
|
||||||
|
|
||||||
setLocalMute(localMute);
|
setLocalMute(localMute);
|
||||||
|
|
||||||
document.getElementById('connectbutton').disabled = false;
|
//document.getElementById('connectbutton').disabled = false;
|
||||||
|
|
||||||
let userpass = getUserPass();
|
let userpass = getUserPass();
|
||||||
if(userpass)
|
if(userpass)
|
||||||
serverConnect();
|
serverConnect();
|
||||||
|
else {
|
||||||
|
document.getElementById("user").classList.add('invisible');
|
||||||
|
document.getElementById("login-container").classList.remove('invisible');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
Loading…
Reference in a new issue