prevent pageload if pressed enter on name email change

This commit is contained in:
Volkan Gezer 2014-05-30 15:12:39 +02:00
parent 517501ffbf
commit 4843d13056
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jQuery.fn.keyUpDelayedOrEnter = function(callback){
} }
}, 1000)); }, 1000));
this.keypress(function () { this.keypress(function (event) {
if (event.keyCode === 13 && that.val() !== '' ){ if (event.keyCode === 13 && that.val() !== '' ){
event.preventDefault(); event.preventDefault();
cb(); cb();