Merge pull request #8793 from owncloud/name-email-enter-prevent

prevent pageload if pressed enter on name email change. fixes #6179
This commit is contained in:
Volkan Gezer 2014-05-30 17:03:32 +02:00
commit a36f2c93d6

View file

@ -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();