diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-12-07 17:33:27 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-12-07 17:33:27 +0100 |
commit | 44a55056e7b6dc505af7f8a0a6f7b33bd0dcacb8 (patch) | |
tree | ebae1c4e1bc40a3d77900061fae6b8b8a5ca008b /settings | |
parent | 823c85e65fcb08fe9e0b1ff9dc32b8a9a9a0f80d (diff) | |
download | nextcloud-server-44a55056e7b6dc505af7f8a0a6f7b33bd0dcacb8.tar.gz nextcloud-server-44a55056e7b6dc505af7f8a0a6f7b33bd0dcacb8.zip |
change mail address by pressing enter - fixes #6179
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 12 |
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(); |