summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-05-30 15:12:39 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-05-30 15:12:39 +0200
commit4843d13056f1570248647d2d31fd0962a8c1a6e3 (patch)
tree7df9a29f6153bb7291c7cda8da098bac94c13817
parent517501ffbf369b24191d8b9a9f2ce44a9891fb97 (diff)
downloadnextcloud-server-4843d13056f1570248647d2d31fd0962a8c1a6e3.tar.gz
nextcloud-server-4843d13056f1570248647d2d31fd0962a8c1a6e3.zip
prevent pageload if pressed enter on name email change
-rw-r--r--settings/js/personal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 9967ddc7bb5..f56dd3425f7 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -26,7 +26,7 @@ jQuery.fn.keyUpDelayedOrEnter = function(callback){
}
}, 1000));
- this.keypress(function () {
+ this.keypress(function (event) {
if (event.keyCode === 13 && that.val() !== '' ){
event.preventDefault();
cb();