fix double call of changeEmailAddress()

This commit is contained in:
Morris Jobke 2014-01-18 22:59:49 +01:00
parent bc23f46198
commit 80dead5a9f
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,11 @@ $(document).ready(function(){
$('#email').keyup(function(){
if ($('#email').val() !== '' ){
// if this is the enter key changeEmailAddress() is already invoked
// so it doesn't need to be triggered again
if(event.keyCode === 13) {
return;
}
if(typeof timeout !== 'undefined'){
clearTimeout(timeout);
}