mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-28 02:08:22 +01:00
fix login form
This commit is contained in:
parent
d26e8d281c
commit
7546af82ac
@ -312,6 +312,8 @@ self.OS.GUI =
|
|||||||
password: ($ "#txtpass").val()
|
password: ($ "#txtpass").val()
|
||||||
_API.handler.login data, (d) ->
|
_API.handler.login data, (d) ->
|
||||||
if d.error then ($ "#login_error").html d.error else _GUI.startAntOS d.result
|
if d.error then ($ "#login_error").html d.error else _GUI.startAntOS d.result
|
||||||
|
($ "#txtpass").keyup (e) ->
|
||||||
|
($ "#btlogin").click() if e.which is 13
|
||||||
, (e, s) ->
|
, (e, s) ->
|
||||||
alert "System fall: Cannot init login screen"
|
alert "System fall: Cannot init login screen"
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@
|
|||||||
</style>
|
</style>
|
||||||
<div id = "login_form">
|
<div id = "login_form">
|
||||||
<p>Welcome to AntOS, please identify</p>
|
<p>Welcome to AntOS, please identify</p>
|
||||||
<input id = "txtuser" type = "text" value = "User name" />
|
<input id = "txtuser" type = "text" value = "demo" />
|
||||||
<input id = "txtpass" type = "password" value = "password" />
|
<input id = "txtpass" type = "password" value = "demo" />
|
||||||
<button id = "btlogin">Login</button>
|
<button id = "btlogin">Login</button>
|
||||||
<span id = "login_error"></span>
|
<span id = "login_error"></span>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user