Commit 651a0dd5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5934 from dblessing/fix/issue_update_js

Fix issue update js
parents 1c0929f5 2804fbbd
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
%span.milestone-nav-link %span.milestone-nav-link
- if @issue.milestone - if @issue.milestone
| |
= link_to project_milestone_path(@project, @issue.milestone) do
%span.light Milestone %span.light Milestone
= link_to project_milestone_path(@project, @issue.milestone) do
= @issue.milestone.title = @issue.milestone.title
.issue-box .issue-box
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
$('.chosen').chosen(); $('.chosen').chosen();
$('.edit-issue.inline-update input[type="submit"]').hide(); $('.edit-issue.inline-update input[type="submit"]').hide();
- if @issue.milestone - if @issue.milestone
$('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}") $('.milestone-nav-link').replaceWith("<span class='milestone-nav-link'>| <span class='light'>Milestone</span> #{escape_javascript(link_to @issue.milestone.title, project_milestone_path(@issue.project, @issue.milestone))}</span>")
- else - else
$('.milestone-nav-link').html('') $('.milestone-nav-link').html('')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment