summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-01-18 22:59:49 +0100
committerMorris Jobke <morris.jobke@gmail.com>2014-01-18 22:59:49 +0100
commit80dead5a9fe26e14a8b3621eab9c867a27f994d3 (patch)
tree79abfabd9d559a39134dc24bb543f3da053e938b /settings
parentbc23f46198168c80cc1aab3ae386687b4ce1ec49 (diff)
downloadnextcloud-server-80dead5a9fe26e14a8b3621eab9c867a27f994d3.tar.gz
nextcloud-server-80dead5a9fe26e14a8b3621eab9c867a27f994d3.zip
fix double call of changeEmailAddress()
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 010f0fc0a79..576a425ce52 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -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);
}