// Prevent enter key event propagation for search input

This commit is contained in:
Jerome Nadaud
2013-09-19 18:07:50 +02:00
parent 33405ed858
commit f8fed30b44
@@ -45,6 +45,12 @@
valueKey: 'name',
local: [{$typeahead_source}]
});
$("#{$id}").keypress(function( event ) {
if ( event.which == 13 ) {
event.stopPropagation();
}
});
}
);
</script>