diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 04:24:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 04:24:31 +0000 |
commit | ef249b5b56c1f226ae5bffe3c7d056b0f1135cf2 (patch) | |
tree | d52897b8adc08e2926c7f4744ac48132bdd81dd6 /app | |
parent | bee8063f468292140762cffac5dbf147f81e897f (diff) | |
download | redmine-ef249b5b56c1f226ae5bffe3c7d056b0f1135cf2.tar.gz redmine-ef249b5b56c1f226ae5bffe3c7d056b0f1135cf2.zip |
code layout clean up app/views/issues/new.js.erb
git-svn-id: http://svn.redmine.org/redmine/trunk@19147 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/new.js.erb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/issues/new.js.erb b/app/views/issues/new.js.erb index 702d922ab..a7e8cf88b 100644 --- a/app/views/issues/new.js.erb +++ b/app/views/issues/new.js.erb @@ -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 %> |