Commit 464de86c by lduarte1991

Annotation Tool: Search happens when user hits enter

parent 946c7eb2
......@@ -504,6 +504,13 @@ CatchAnnotation.prototype = {
// Search Button
el.on("click", ".searchbox .search-icon", onSearchButtonClick);
// Search should also run when user hits ENTER
$('input[name=search]').keyup(function(e) {
// ENTER == 13
if(e.which == 13) {
onSearchButtonClick();
}
});
// Clear Search Button
el.on("click", ".searchbox .clear-search-icon", onClearSearchButtonClick);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment