2011-10-08 17:36:38 -04:00
|
|
|
- if @issue.valid?
|
|
|
|
:plain
|
2011-11-25 16:40:12 -05:00
|
|
|
switchFromNewIssue();
|
2012-08-10 18:07:50 -04:00
|
|
|
$("#issues-table").prepend("#{escape_javascript(render(partial: 'show', locals: {issue: @issue}))}");
|
2011-10-08 17:36:38 -04:00
|
|
|
$.ajax({type: "GET", url: location.href, dataType: "script"});
|
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
$("#new_issue_dialog").empty();
|
|
|
|
$("#new_issue_dialog").append("#{escape_javascript(render('form'))}");
|
2011-11-25 16:40:12 -05:00
|
|
|
$('select#issue_assignee_id').chosen();
|