]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/views/issues/new.js.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:24:31 +0000 (04:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:24:31 +0000 (04:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19147 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/new.js.erb

index 702d922abd49a7086afa8eb8a69eed8caa3cdffe..a7e8cf88be4a03db7c6ea8271009d02ffd0f2780 100644 (file)
@@ -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 || '&nbsp;'.html_safe %>');
+  $('#issue_assigned_to_id').find('option').first().html(
+    '<%= escape_javascript(
+           @issue.category.try(:assigned_to).try(:name)).presence || '&nbsp;'.html_safe %>');
 <% end %>