Project

General

Profile

Defect #39795 » fix-39795.patch

Mizuki ISHIKAWA, 2023-12-08 07:21

View differences:

app/views/issues/_form.html.erb
32 32
<% if @issue.safe_attribute? 'description' %>
33 33
<p>
34 34
  <%= f.label_for_field :description, :required => @issue.required_attribute?('description') %>
35
  <%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
36 35
  <%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
37 36
    <%= f.text_area :description, :cols => 60, :accesskey => accesskey(:edit), :class => 'wiki-edit',
38 37
                   :rows => [[10, @issue.description.to_s.length / 50].max, 20].min,
......
41 40
                   },
42 41
                   :no_label => true %>
43 42
  <% end %>
43
  <%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
44 44
</p>
45 45
<%= wikitoolbar_for 'issue_description', preview_issue_path(:project_id => @issue.project, :issue_id => @issue.id) %>
46 46
<% end %>
public/stylesheets/application.css
905 905
  color: #bb0000;
906 906
}
907 907

  
908
.tabular label.error + * {
908
.tabular label.error + *:not(#issue_description_and_toolbar), .tabular label.error + span#issue_description_and_toolbar div.jstBlock {
909 909
  border: 1px solid #bb0000;
910 910
}
911 911

  
(4-4/4)