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:
commit
a36f2c93d6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue