Disable enter on search
This commit is contained in:
parent
0c66b8a689
commit
c7f970c475
@ -55,6 +55,13 @@
|
|||||||
updater: function (item) {
|
updater: function (item) {
|
||||||
window.parent.location.href = '{{ url("/") }}'+users[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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user