fix double call of changeEmailAddress()
This commit is contained in:
parent
bc23f46198
commit
80dead5a9f
|
@ -164,6 +164,11 @@ $(document).ready(function(){
|
||||||
|
|
||||||
$('#email').keyup(function(){
|
$('#email').keyup(function(){
|
||||||
if ($('#email').val() !== '' ){
|
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'){
|
if(typeof timeout !== 'undefined'){
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue