mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Press Enter after password and finally instant open client
This commit is contained in:
parent
c4f0623b62
commit
5b34e5ba5d
1 changed files with 9 additions and 1 deletions
|
@ -43,6 +43,14 @@
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function keypressing(e) {
|
||||||
|
if (!e) e = window.event;
|
||||||
|
var keyCode = e.keyCode || e.which;
|
||||||
|
if (keyCode == '13'){
|
||||||
|
doLogin();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -79,7 +87,7 @@
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<label class="s-login-input-wrapper">
|
<label class="s-login-input-wrapper">
|
||||||
Password
|
Password
|
||||||
<input type="password" name="password">
|
<input type="password" name="password" onkeypress="return keypressing(event)">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-default s-login-btn pull-right" id="submitButton" onclick="doLogin()">Login</button>
|
<button class="btn btn-default s-login-btn pull-right" id="submitButton" onclick="doLogin()">Login</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue