prevent pageload if pressed enter on name email change
This commit is contained in:
parent
517501ffbf
commit
4843d13056
|
@ -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 New Issue