mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix improper error highlighting for description field in issue form (#39795).
Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22545 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dbd6db7272
commit
081d6c3713
@ -32,7 +32,6 @@
|
||||
<% if @issue.safe_attribute? 'description' %>
|
||||
<p>
|
||||
<%= f.label_for_field :description, :required => @issue.required_attribute?('description') %>
|
||||
<%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
|
||||
<%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
|
||||
<%= f.text_area :description, :cols => 60, :accesskey => accesskey(:edit), :class => 'wiki-edit',
|
||||
:rows => [[10, @issue.description.to_s.length / 50].max, 20].min,
|
||||
@ -41,6 +40,7 @@
|
||||
},
|
||||
:no_label => true %>
|
||||
<% end %>
|
||||
<%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
|
||||
</p>
|
||||
<%= wikitoolbar_for 'issue_description', preview_issue_path(:project_id => @issue.project, :issue_id => @issue.id) %>
|
||||
<% end %>
|
||||
|
||||
@ -905,7 +905,7 @@ label.block {
|
||||
color: #bb0000;
|
||||
}
|
||||
|
||||
.tabular label.error + * {
|
||||
.tabular label.error + *:not(#issue_description_and_toolbar), .tabular label.error + span#issue_description_and_toolbar div.jstBlock {
|
||||
border: 1px solid #bb0000;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user