|
|
@@ -1,7 +1,10 @@ |
|
|
|
replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>'); |
|
|
|
<% case params[:form_update_triggered_by] %> |
|
|
|
<% when "issue_project_id" %> |
|
|
|
$("#watchers_form_container").html('<%= escape_javascript(render :partial => 'issues/watchers_form') %>'); |
|
|
|
$("#watchers_form_container").html( |
|
|
|
'<%= escape_javascript(render :partial => 'issues/watchers_form') %>'); |
|
|
|
<% when "issue_category_id" %> |
|
|
|
$('#issue_assigned_to_id').find('option').first().html('<%= escape_javascript(@issue.category.try(:assigned_to).try(:name)).presence || ' '.html_safe %>'); |
|
|
|
$('#issue_assigned_to_id').find('option').first().html( |
|
|
|
'<%= escape_javascript( |
|
|
|
@issue.category.try(:assigned_to).try(:name)).presence || ' '.html_safe %>'); |
|
|
|
<% end %> |