summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-18 13:51:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-18 13:51:05 (GMT)
commit2783f60fe9d8937fa3f4ae52527441a6751d6427 (patch)
treedf4803a39514e737e50c42473bce52227d16902d
parentd5365dd5bf75797157afba90598a5ccf4ef7291f (diff)
improved focus and form values after errors
-rw-r--r--index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.html b/index.html
index 9a05974..4d06682 100644
--- a/index.html
+++ b/index.html
@@ -49,8 +49,10 @@
alertbox.error("Fehler beim Login", data.errorstring);
sessionStorage.removeItem("username");
delete username;
+ $("#username").val('').focus();
sessionStorage.removeItem("token");
delete token;
+ $("#password").val('');
}
}