changeset 157:5af343faf647

Enable autocompletion in form fields.
author Daniele Nicolodi <daniele@grinta.net>
date Fri, 04 Nov 2011 11:07:40 +0100
parents f6f93996acf4
children cfbf702d119b
files src/ltpdarepo/static/querywidget.js src/ltpdarepo/templates/query.html src/ltpdarepo/templates/timerange.html
diffstat 3 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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');
--- 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 %}
         </select>
         {% else %}
-        <input class="querywidget value {{ cssclass }}" autocomplete="off" type="text" name="value" value="{{ value }}" />
+        <input class="querywidget value {{ cssclass }}" type="text" name="value" value="{{ value }}" />
         {% endif %}
         <input class="querywidget remove" type="button" name="remove" value="&times;" />
       </div>
--- 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 @@
     <div id="timerange" class="wrapper">
       <div class="criteria wrapper">
         {% 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 %}
         <span>&#x2264; TIME &#x2264;</span>
         {% 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 %}
       </div>
     </div>