Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
autofill? more like overkill (bug 693360)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Oct 13, 2011
1 parent af9dc36 commit 2b1af37
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions apps/search/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class SimpleSearchForm(forms.Form):
"""Powers the search box on every page."""
q = forms.CharField(required=False)
cat = forms.CharField(required=False, widget=forms.HiddenInput)
appver = forms.CharField(required=False, widget=forms.HiddenInput)
platform = forms.CharField(required=False, widget=forms.HiddenInput)
choices = dict(SEARCH_CHOICES)

def clean_cat(self):
Expand Down
2 changes: 0 additions & 2 deletions apps/search/templates/search/mobile/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<input name="q" placeholder="{{ search_form.placeholder() }}"
type="search" {% if query %}value="{{ query }}"{% endif %}>
{{ search_form.cat }}
{{ search_form.appver }}
{{ search_form.platform }}
<button type="submit" value="">
<svg width="22" height="23" xmlns="http://www.w3.org/2000/svg" version="1.1"><polygon fill="#ffffff" points="22,12 11,23 8,20 14,14 0,14 0,10 14,10 8,4 11,1"/></svg>
</button>
Expand Down
4 changes: 0 additions & 4 deletions media/js/zamboni/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ if (z.browser.firefox) {
if (z.fxBeta) {
$(document.body).addClass('fxbeta');
}

// Populate search form with browser version and OS.
$('#search #id_appver').val(z.browserVersion);
$('#search #id_platform').val(z.platform);
} else {
z.fxBeta = false;
}
Expand Down
2 changes: 0 additions & 2 deletions templates/impala/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
placeholder="{{ search_form.placeholder() }}"
value="{{ search_form.q.data or '' }}">
{{ search_form.cat }}
{{ search_form.appver }}
{{ search_form.platform }}
<button class="search-button" type="submit" title="{{ _('Search') }}"
src="{{ media('img/zamboni/global/btn-search.png') }}"></button>
{% if waffle.switch('search-suggestions') %}
Expand Down
2 changes: 0 additions & 2 deletions templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
placeholder="{{ search_form.placeholder() }}"
value="{{ search_form.q.data or '' }}">
{{ search_form.cat }}
{{ search_form.appver }}
{{ search_form.platform }}
</span>
<input id="search-button" type="image" class="submit search-button" title="{{ _('Search') }}"
src="{{ media('img/zamboni/global/btn-search.png') }}">
Expand Down

0 comments on commit 2b1af37

Please sign in to comment.