autocomplete-off.diff

Marius BALTEANU, 2017-04-05 18:20

Download (1.01 KB)

View differences:

app/helpers/application_helper.rb
369 369
    projects = projects_for_jump_box(User.current)
370 370
    text = @project.try(:name) || l(:label_jump_to_a_project)
371 371
    trigger = content_tag('span', text, :class => 'drdn-trigger')
372
    q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => projects_path(:format => 'js')})
372
    q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => projects_path(:format => 'js')}, :autocomplete => 'off')
373 373
    all = link_to(l(:label_project_all), projects_path(:jump => current_menu_item), :class => (@project.nil? && controller.class.main_menu ? 'selected' : nil))
374 374
    content = content_tag('div',
375 375
          content_tag('div', q, :class => 'quick-search') +