Disable enter on search

This commit is contained in:
Deon George 2018-05-03 06:22:09 +10:00
parent 0c66b8a689
commit c7f970c475
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254

View File

@ -55,7 +55,14 @@
updater: function (item) {
window.parent.location.href = '{{ url("/") }}'+users[item];
},
});
})
.on('keyup keypress', function(event) {
var key = event.keyCode || event.which;
if (key === 13) {
event.preventDefault();
return false;
}
});
});
var c=0;