diff options
author | Go MAEDA <maeda@farend.jp> | 2023-08-31 23:30:11 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-08-31 23:30:11 +0000 |
commit | 9315481cdfefed08d0e1bfa0701de872ba6d241b (patch) | |
tree | 0a9b60d704f1e3dc5ee576ef39154eefa8795eee /app | |
parent | 33e8d67e7c5bea4a28deaa868ad13b3812906dd4 (diff) | |
download | redmine-9315481cdfefed08d0e1bfa0701de872ba6d241b.tar.gz redmine-9315481cdfefed08d0e1bfa0701de872ba6d241b.zip |
Add missing files in r22289 (#2568).
git-svn-id: https://svn.redmine.org/redmine/trunk@22290 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/_issue_status_description.html.erb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/issues/_issue_status_description.html.erb b/app/views/issues/_issue_status_description.html.erb new file mode 100644 index 000000000..4b67d3d82 --- /dev/null +++ b/app/views/issues/_issue_status_description.html.erb @@ -0,0 +1,22 @@ +<% if issue_statuses.any? {|s| s.description.present? } %> + <div class="modal" id="issue_statuses_description"> + <h3 class="title"><%= l(:label_issue_statuses_description) %></h3> + <dl> + <% issue_statuses.each do |issue_status| %> + <% if issue_status.description.present? %> + <dt><%= content_tag 'a', issue_status.name, :onclick => "selectIssueStatus('#{issue_status.id}'); return false;", :href => '#', :title => l(:text_select_apply_issue_status) %></dt> + <dd><%= issue_status.description %></dd> + <% end %> + <% end %> + </dl> + </div> +<% end %> +<%= javascript_tag do %> + function selectIssueStatus(id) { + var target = $('#issue_status_id'); + target.attr("selected", false); + target.find('option[value="' + id + '"]').prop('selected', true); + target.trigger('change'); + hideModal('#issue_statuses_description h3'); + } +<% end %> |