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 %>
|
2012-09-02 14:08:51 +04:00
|
|
|
alert("<%= raw(escape_javascript(l(:label_issue) + ' ' + l('activerecord.errors.messages.invalid'))) %>");
|
2012-07-19 21:27:14 +04:00
|
|
|
<% end %>
|