Mercurial > public > sg101
changeset 729:99d7bf8cd712
Changed the search input type to search for HTML5.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Oct 2013 14:48:42 -0500 |
parents | 60fb45446e3b |
children | b5b7910d78df |
files | custom_search/forms.py static/css/base.css |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/custom_search/forms.py Sun Oct 06 14:14:58 2013 -0500 +++ b/custom_search/forms.py Sun Oct 06 14:48:42 2013 -0500 @@ -26,7 +26,10 @@ """ q = forms.CharField(required=False, label='', - widget=forms.TextInput(attrs={'class': 'text', 'size': 48})) + widget=forms.TextInput(attrs={'type': 'search', + 'class': 'search', + 'size': 48, + })) def __init__(self, *args, **kwargs): super(CustomModelSearchForm, self).__init__(*args, **kwargs)