Commit d838429d9e0b74edd1206d35c033dabe551b5cc6
1 parent
7bb2aec2
Exists in
focus_search_field_theme
Focus on search field
Signed-off-by: Carlos Oliveira <carlosoliveira@duzeru.org>
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html
| 1 | {% load i18n gravatar plugins %} | 1 | {% load i18n gravatar plugins %} |
| 2 | {% load static from staticfiles %} | 2 | {% load static from staticfiles %} |
| 3 | 3 | ||
| 4 | +{% block head_js %} | ||
| 5 | + <script> | ||
| 6 | + $(document).ready(function() { | ||
| 7 | + $("#link-buscar").click(function(){ | ||
| 8 | + $("#nolivesearchGadget").focus(); | ||
| 9 | + }); | ||
| 10 | + }); | ||
| 11 | + </script> | ||
| 12 | +{% endblock %} | ||
| 13 | + | ||
| 4 | <header> | 14 | <header> |
| 5 | <div class="colab-style"> | 15 | <div class="colab-style"> |
| 6 | <div id="barra-brasil"> | 16 | <div id="barra-brasil"> |
| @@ -23,7 +33,7 @@ | @@ -23,7 +33,7 @@ | ||
| 23 | </a> | 33 | </a> |
| 24 | </li> | 34 | </li> |
| 25 | <li> | 35 | <li> |
| 26 | - <a accesskey="3" href="#nolivesearchGadget" id="link-buscar"> | 36 | + <a accesskey="3" href="#q" id="link-buscar"> |
| 27 | Ir para a busca | 37 | Ir para a busca |
| 28 | <span>3</span> | 38 | <span>3</span> |
| 29 | </a> | 39 | </a> |