summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/update.js.haml
blob: 4f14cd809cd3ca289bd2ebc08c7351bdb4f591c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- if params[:status_only]
  - if @issue.valid?
    :plain
      $("##{dom_id(@issue)}").fadeOut();
- elsif params[:issue_context]
  $('.issue-box .context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}");
  $('.issue-box .context').effect('highlight');
  $('.chosen').chosen();
  $('.edit-issue.inline-update input[type="submit"]').gl-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')}")
  - else
    $('.milestone-nav-link').html('')