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:
@@ -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;' %>
|
||||
|
||||
Reference in New Issue
Block a user