From 39056fbd57d6aed541395eb27e6c0ff70a917465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Wed, 6 Feb 2013 11:37:05 +0100 Subject: [PATCH] Pressing enter in the guest login form should submit the login. --- static/sidebar.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/sidebar.js b/static/sidebar.js index 8abb9fe..e5b66c5 100644 --- a/static/sidebar.js +++ b/static/sidebar.js @@ -57,17 +57,19 @@ function callPerson(aPerson, aAudioCall) { function startGuest() { $("#signin").hide(); - $("#guest").html( - '' + - '' + $("#guest").html('
' + + ' ' + + ' ' + + '
' ); $("#user").focus(); } -function guestLogin() { +function guestLogin(event) { var user = $("#user").attr("value"); remoteLogin({assertion: user, fake: true}); gFake = true; + event.preventDefault(); } function signedIn(aEmail) {