mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 16:44:17 +02:00
[Client] Improve usability
This commit is contained in:
parent
d7bf7ff188
commit
728bbb658e
1 changed files with 7 additions and 0 deletions
|
@ -113,6 +113,13 @@
|
||||||
@onsubmit = (e) ~>
|
@onsubmit = (e) ~>
|
||||||
e.prevent-default!
|
e.prevent-default!
|
||||||
|
|
||||||
|
if @refs.username.value == ''
|
||||||
|
@refs.username.focus!
|
||||||
|
return false
|
||||||
|
if @refs.password.value == ''
|
||||||
|
@refs.password.focus!
|
||||||
|
return false
|
||||||
|
|
||||||
@signing = true
|
@signing = true
|
||||||
@update!
|
@update!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue