Commit 9fcad7f0 authored by Ryan Herbert's avatar Ryan Herbert

forms info fields prevent form submission on enter

parent e2bbd7aa
......@@ -49,6 +49,7 @@
<div class="field_div">
<input id="file_info_{{=i}}"
onfocus="new VidjilAutoComplete().setupTags(this);"
onkeydown="if (event.keyCode == 13) return false;"
data-needs-atwho="true"
data-keys="{{=group_ids}}"
class="text form-control"
......
......@@ -15,6 +15,7 @@
<input
onfocus="$(this).data('group-ids', [$('#group_select option:selected').val()]);
new VidjilAutoComplete().setupAtWho(this);"
onkeydown="if (event.keyCode == 13) return false;"
data-needs-atwho="true"
class="text form-control"
id="sample_set_info_{{=i}}"
......
......@@ -28,6 +28,7 @@
<input
onfocus="$(this).data('keys', [$('#group_select option:selected').val()]);
new VidjilAutoComplete().setupTags(this);"
onkeydown="if (event.keyCode == 13) return false;"
data-needs-atwho="true"
class="text form-control"
id="patient_info_{{=i}}"
......
......@@ -24,6 +24,7 @@
<input
onfocus="$(this).data('group-ids', [$('#group_select option:selected').val()]);
new VidjilAutoComplete().setupAtWho(this);"
onkeydown="if (event.keyCode == 13) return false;"
data-needs-atwho="true"
class="text form-control"
id="run_info_{{=i}}"
......
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