Commit 18c0e519 authored by Ryan Herbert's avatar Ryan Herbert

file forms remove browser autocomplete

This could be problematic in the past since it could remember older
values, leading to errors.

Furthermore, since we are now using At.js for these inputs, browser
autocompletion is a major hindrance and needs to disappear.
See 2701
parent a0040fb5
......@@ -59,7 +59,7 @@
{{ for key in id_strings: }}
<tr>
<td><label for="{{=key}}_id" id="{{=key}}_id__label">{{=key if key != 'generic' else 'set'}}: </label></td>
<td><input onfocus="new VidjilAutoComplete().setupSamples(this);" data-needs-atwho="true" data-keys=["{{=key}}"] id="{{=key}}_list" name="{{=key}}_id" type="text" size="80" value="{{=id_strings[key]}}"></td>
<td><input onfocus="new VidjilAutoComplete().setupSamples(this);" data-needs-atwho="true" data-keys=["{{=key}}"] id="{{=key}}_list" name="{{=key}}_id" type="text" size="80" value="{{=id_strings[key]}}", autocomplete="off"></td>
</tr>
{{ pass }}
<tr class='db_table_split' ><td colspan="2"> sample information </td></tr>
......
......@@ -65,7 +65,7 @@ info = db.sequence_file[request.vars["id"]]
{{ for key in id_strings: }}
<tr>
<td><label for="{{=key}}_id" id="{{=key}}_id__label">{{=key if key != 'generic' else 'set'}}: </label></td>
<td><input onfocus="new VidjilAutoComplete().setupSamples(this);" data-needs-atwho="true" data-keys=["{{=key}}"] id="{{=key}}_list" name="{{=key}}_id" type="text" size="80" value="{{=id_strings[key]}}"></td>
<td><input onfocus="new VidjilAutoComplete().setupSamples(this);" data-needs-atwho="true" data-keys=["{{=key}}"] id="{{=key}}_list" name="{{=key}}_id" type="text" size="80" value="{{=id_strings[key]}}" autocomplete="off"></td>
</tr>
{{ pass }}
......
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