summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-21 08:42:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-21 08:42:35 +0900
commit728bbb658e702538ff6bd8a1df95563dad43cbda (patch)
treef31b8513e87bf36b8fd0f16ed957e6ab1cba3c34 /src/web
parent[Test] Add some tests (diff)
downloadmisskey-728bbb658e702538ff6bd8a1df95563dad43cbda.tar.gz
misskey-728bbb658e702538ff6bd8a1df95563dad43cbda.tar.bz2
misskey-728bbb658e702538ff6bd8a1df95563dad43cbda.zip
[Client] Improve usability
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/common/tags/signin.tag7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web/app/common/tags/signin.tag b/src/web/app/common/tags/signin.tag
index 5f400d9bdf..d181e71622 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!