summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/views/scripts/auth/login.phtml
diff options
context:
space:
mode:
authorSimon2011-04-19 21:03:12 +0200
committerSimon2011-04-19 21:03:12 +0200
commit89740ed44b515c770d0a16ed151c5a0705a33f2c (patch)
treed96c2d2f819a71a7ec5200977e16e12561c3ba54 /application/modules/fbgui/views/scripts/auth/login.phtml
parentTicket #227 - Wenn eine Person nur eine Membership hat, wird diese automatisc... (diff)
downloadpbs2-89740ed44b515c770d0a16ed151c5a0705a33f2c.tar.gz
pbs2-89740ed44b515c770d0a16ed151c5a0705a33f2c.tar.xz
pbs2-89740ed44b515c770d0a16ed151c5a0705a33f2c.zip
Ticket #228 - Enter kann zum Absenden des Formulars benutzt werden
Diffstat (limited to 'application/modules/fbgui/views/scripts/auth/login.phtml')
-rw-r--r--application/modules/fbgui/views/scripts/auth/login.phtml6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/modules/fbgui/views/scripts/auth/login.phtml b/application/modules/fbgui/views/scripts/auth/login.phtml
index 09724d4..359a743 100644
--- a/application/modules/fbgui/views/scripts/auth/login.phtml
+++ b/application/modules/fbgui/views/scripts/auth/login.phtml
@@ -7,5 +7,11 @@ echo $this->loginForm;
<script>
$(document).ready(function(){
$("#email").focus();
+ $('input').keypress(function(e) {
+ if(e.which == 13) {
+ $(this).blur();
+ $('#login').focus().click();
+ }
+ });
});
</script>