Ticket #3400: 0001-added-tabindex-1-for-search-input-on-the-main-side.patch

File 0001-added-tabindex-1-for-search-input-on-the-main-side.patch, 1.0 KB (added by booo, 9 years ago)

tabindex patch

  • app/views/site/_search.html.erb

    From bde0c32997957dcd2132a9545899c0d1b1f4e745 Mon Sep 17 00:00:00 2001
    From: Philipp Borgers <borgers@mi.fu-berlin.de>
    Date: Sat, 18 Dec 2010 18:08:33 +0100
    Subject: [PATCH] added tabindex="1" for search input on the main side
    
    ---
     app/views/site/_search.html.erb |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb
    index 31b5af1..f487e8f 100644
    a b  
    4141                       :complete => "endSearch()",
    4242                       :url => { :controller => :geocoder, :action => :search },
    4343                       :html => { :method => "get", :action => url_for(:action => "index") }) do %>
    44       <%= text_field_tag :query, h(params[:query]) %>
     44      <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %>
    4545      <% if params[:action] == 'index' %>
    4646        <%= hidden_field_tag :minlon %>
    4747        <%= hidden_field_tag :minlat %>