Merge pull request #5934 from dblessing/fix/issue_update_js

Fix issue update js
This commit is contained in:
Dmitriy Zaporozhets 2014-01-06 06:17:55 -08:00
commit 651a0dd5fe
2 changed files with 2 additions and 2 deletions

View file

@ -33,8 +33,8 @@
%span.milestone-nav-link
- if @issue.milestone
|
%span.light Milestone
= link_to project_milestone_path(@project, @issue.milestone) do
%span.light Milestone
= @issue.milestone.title
.issue-box

View file

@ -8,6 +8,6 @@
$('.chosen').chosen();
$('.edit-issue.inline-update input[type="submit"]').hide();
- 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
$('.milestone-nav-link').html('')