summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/add_related_issue.js.erb
blob: f3864d3bef79ecc4a5da673591fd0f5a51962f4a (plain)
1
2
3
4
5
6
7
<% if @issue %>
  $('#related-issues').html('<%= escape_javascript(render :partial => "related_issues") %>');
  $('#related-issue-<%= @issue.id %>').effect("highlight");
  $('#issue_id').focus();
<% else %>
  alert("<%= raw(escape_javascript(l(:label_issue) + ' ' + l('activerecord.errors.messages.invalid'))) %>");
<% end %>