mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 03:36:36 +02:00
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@24497 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 lines
597 B
Plaintext
14 lines
597 B
Plaintext
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') %>');
|
|
<% when "issue_category_id" %>
|
|
$('#issue_assigned_to_id').find('option').first()
|
|
// Browsers prefer option[label] over inner text, so remove the blank label.
|
|
.removeAttr('label')
|
|
.html(
|
|
'<%= escape_javascript(
|
|
@issue.category.try(:assigned_to).try(:name)).presence || ' '.html_safe %>');
|
|
<% end %>
|