Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #759 from glogiotatidis/957995
Browse files Browse the repository at this point in the history
[fix bug 957995] Don't autofocus on search box.
  • Loading branch information
glogiotatidis committed Jan 21, 2014
2 parents 281acb4 + dca134b commit fc478e2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
6 changes: 0 additions & 6 deletions mozillians/static/mozillians/css/main.less
Expand Up @@ -913,12 +913,6 @@ body#home {
}
}
&.loggedin {
nav form.navbar-search {
display: none;
@media (max-width: @breakDesktop) {
display: inline;
}
}
#main {
#profile-info {
.span(3);
Expand Down
4 changes: 2 additions & 2 deletions mozillians/templates/base.html
Expand Up @@ -73,8 +73,8 @@
{% block search %}
<form class="navbar-search"
action="{{ url('phonebook:search') }}" method="GET">
<input autofocus type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
<input type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
</form>
{% endblock %}
{% if user.is_authenticated() %}
Expand Down
14 changes: 4 additions & 10 deletions mozillians/templates/phonebook/home.html
Expand Up @@ -10,13 +10,7 @@
{% endblock mosaic %}

{% block search %}
{% if user.is_authenticated() %}
<form class="navbar-search"
action="{{ url('phonebook:search') }}" method="GET">
<input type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
</form>
{% endif %}
{# Don't display search in navbar on home.html #}
{% endblock %}

{% block content %}
Expand All @@ -25,8 +19,8 @@
<img id="mozillians-logo" src="{{ static('mozillians/img/mozillians-logo.png') }}" alt="Mozillians">
<hr>
<form id="homepage-search" action="{{ url('phonebook:search') }}" method="GET">
<input autofocus type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
<input type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
</form>
</hgroup>

Expand Down Expand Up @@ -165,7 +159,7 @@ <h4>{{ _('Skills') }}</h4>
<article id="content-info">
<h1>{{ _('Hello!') }}</h1>
<form id="homepage-search" action="{{ url('phonebook:search') }}" method="GET">
<input autofocus type="text" name="q" class="search-query"
<input type="text" name="q" class="search-query"
placeholder="{{ _('Search for people, groups and more') }}">
<small>{{ _('Examples:') }}
{% trans search_url=url('phonebook:search') %}
Expand Down
3 changes: 1 addition & 2 deletions mozillians/templates/phonebook/search.html
Expand Up @@ -29,8 +29,7 @@
<h1>{{ _('Search') }}</h1>
<form method="GET" id="search-form" action="{{ url('phonebook:search') }}">
{{ field_with_attrs(search_form.q,
placeholder=_('Name, IRC Nick, Email or Location'),
autofocus='autofocus') }}
placeholder=_('Search for people, groups and more')) }}

{{ search_form.limit }}
<button type="submit">
Expand Down

0 comments on commit fc478e2

Please sign in to comment.