2012-07-19 21:27:14 +04:00
|
|
|
<% if @issue %>
|
2012-07-22 17:29:26 +04:00
|
|
|
$('#related-issues').html('<%= escape_javascript(render :partial => "related_issues") %>');
|
|
|
|
$('#related-issue-<%= @issue.id %>').effect("highlight");
|
|
|
|
$('#issue_id').focus();
|
2012-07-19 21:27:14 +04:00
|
|
|
<% else %>
|
|
|
|
alert("<%= escape_javascript(l(:label_issue) + ' ' + l('activerecord.errors.messages.invalid')) %>");
|
|
|
|
<% end %>
|