Commit 651a0dd5fe0bd443f71610e9bfa2224461ab030f
Exists in
spb-stable
and in
3 other branches
Merge pull request #5934 from dblessing/fix/issue_update_js
Fix issue update js
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/projects/issues/show.html.haml
@@ -33,8 +33,8 @@ | @@ -33,8 +33,8 @@ | ||
33 | %span.milestone-nav-link | 33 | %span.milestone-nav-link |
34 | - if @issue.milestone | 34 | - if @issue.milestone |
35 | | | 35 | | |
36 | + %span.light Milestone | ||
36 | = link_to project_milestone_path(@project, @issue.milestone) do | 37 | = link_to project_milestone_path(@project, @issue.milestone) do |
37 | - %span.light Milestone | ||
38 | = @issue.milestone.title | 38 | = @issue.milestone.title |
39 | 39 | ||
40 | .issue-box | 40 | .issue-box |
app/views/projects/issues/update.js.haml
@@ -8,6 +8,6 @@ | @@ -8,6 +8,6 @@ | ||
8 | $('.chosen').chosen(); | 8 | $('.chosen').chosen(); |
9 | $('.edit-issue.inline-update input[type="submit"]').hide(); | 9 | $('.edit-issue.inline-update input[type="submit"]').hide(); |
10 | - if @issue.milestone | 10 | - if @issue.milestone |
11 | - $('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}") | 11 | + $('.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>") |
12 | - else | 12 | - else |
13 | $('.milestone-nav-link').html('') | 13 | $('.milestone-nav-link').html('') |