aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r--settings/js/personal.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 2934677f256..7b9268ca813 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -171,6 +171,18 @@ $(document).ready(function(){
}
});
+ $('#email').keypress(function(event){
+ // check for enter key and non empyt email
+ if (event.keyCode === 13 && $('#email').val() !== '' ){
+ event.preventDefault()
+ // clear timeout of previous keyup event - prevents duplicate changeEmailAddress call
+ if(typeof timeout !== 'undefined'){
+ clearTimeout(timeout);
+ }
+ changeEmailAddress();
+ }
+ });
+
$("#languageinput").change( function(){
// Serialize the data
var post = $( "#languageinput" ).serialize();