debian-mirror-gitlab/app/views/projects/issues/update.js.haml

18 lines
780 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- if params[:status_only]
- if @issue.valid?
:plain
$("##{dom_id(@issue)}").fadeOut();
- elsif params[:issue_context]
2015-04-26 12:48:37 +05:30
$('.context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}");
$('.context').effect('highlight');
2014-09-02 18:07:02 +05:30
- if @issue.milestone
2015-04-26 12:48:37 +05:30
$('.milestone-nav-link').replaceWith("<span class='milestone-nav-link'>| <span class='light'>Milestone</span> #{escape_javascript(link_to @issue.milestone.title, namespace_project_milestone_path(@issue.project.namespace, @issue.project, @issue.milestone))}</span>")
2014-09-02 18:07:02 +05:30
- else
$('.milestone-nav-link').html('')
2015-04-26 12:48:37 +05:30
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
$('.edit-issue.inline-update input[type="submit"]').hide();
new UsersSelect()
new Issue();