From dd6cb158a2b072e7b8e4b7f5d2e4059c7380f84f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2017 08:42:35 +0900 Subject: [PATCH] [Client] Improve usability --- src/web/app/common/tags/signin.tag | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/web/app/common/tags/signin.tag b/src/web/app/common/tags/signin.tag index 5f400d9bd..d181e7162 100644 --- a/src/web/app/common/tags/signin.tag +++ b/src/web/app/common/tags/signin.tag @@ -113,6 +113,13 @@ @onsubmit = (e) ~> e.prevent-default! + if @refs.username.value == '' + @refs.username.focus! + return false + if @refs.password.value == '' + @refs.password.focus! + return false + @signing = true @update!