1
0

Added form names and select tag autocomplete off

To make select tags show selected option (FF bug)
https://stackoverflow.com/questions/1479233/why-doesnt-firefox-show-the-correct-default-select-option
This commit is contained in:
cryptogopher
2019-11-28 01:26:43 +01:00
parent 628578cda5
commit ffc8dbad8c
11 changed files with 46 additions and 32 deletions

View File

@@ -13,8 +13,9 @@
<h2><%= t ".heading_new_source" %></h2>
<%= labelled_form_for @source,
url: project_sources_path(@project),
html: {id: 'source-form'} do |f| %>
url: project_sources_path(@project),
html: {id: 'source-add-form', name: 'source-add-form'} do |f| %>
<%= render partial: 'sources/form', locals: {f: f} %>
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#", onclick: '$("#add-source").hide(); return false;' %>