# HG changeset patch # User Daniele Nicolodi # Date 1320401260 -3600 # Node ID 5af343faf6476cac56c158e068052417c2f06aab # Parent f6f93996acf46f1b27890d7271365c5eae351f30 Enable autocompletion in form fields. diff -r f6f93996acf4 -r 5af343faf647 src/ltpdarepo/static/querywidget.js --- a/src/ltpdarepo/static/querywidget.js Fri Nov 04 11:07:12 2011 +0100 +++ b/src/ltpdarepo/static/querywidget.js Fri Nov 04 11:07:40 2011 +0100 @@ -58,7 +58,6 @@ break; default: return $(document.createElement('input')).attr({ - 'autocomplete': 'off', 'type': 'text', 'name': 'value' }).addClass('querywidget value'); diff -r f6f93996acf4 -r 5af343faf647 src/ltpdarepo/templates/query.html --- a/src/ltpdarepo/templates/query.html Fri Nov 04 11:07:12 2011 +0100 +++ b/src/ltpdarepo/templates/query.html Fri Nov 04 11:07:40 2011 +0100 @@ -64,7 +64,7 @@ {% endfor %} {% else %} - + {% endif %} diff -r f6f93996acf4 -r 5af343faf647 src/ltpdarepo/templates/timerange.html --- a/src/ltpdarepo/templates/timerange.html Fri Nov 04 11:07:12 2011 +0100 +++ b/src/ltpdarepo/templates/timerange.html Fri Nov 04 11:07:40 2011 +0100 @@ -3,15 +3,15 @@
{% if timerange.t1.errors -%} - {{ timerange.t1(class_='timerange-t1 error', autocomplete='off', placeholder='FROM') }} + {{ timerange.t1(class_='timerange-t1 error', placeholder='FROM') }} {% else -%} - {{ timerange.t1(class_='timerange-t1', autocomplete='off', placeholder='FROM') }} + {{ timerange.t1(class_='timerange-t1', placeholder='FROM') }} {%- endif %} ≤ TIME ≤ {% if timerange.t2.errors -%} - {{ timerange.t2(class_='timerange-t2 error', autocomplete='off', placeholder='TO') }} + {{ timerange.t2(class_='timerange-t2 error', placeholder='TO') }} {% else -%} - {{ timerange.t2(class_='timerange-t2', autocomplete='off', placeholder='TO') }} + {{ timerange.t2(class_='timerange-t2', placeholder='TO') }} {%- endif %}