Commit bb81eff4 authored by Jacob Schatz's avatar Jacob Schatz

Issue sidebar bug fix.

Thanks @rspeicher.
parent d6d3a132
...@@ -98,9 +98,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -98,9 +98,7 @@ class Projects::IssuesController < Projects::ApplicationController
format.json do format.json do
render json: { render json: {
saved: @issue.valid?, saved: @issue.valid?,
assignee_avatar_url: @issue.assignee.try(:avatar_url), assignee_avatar_url: @issue.assignee.try(:avatar_url)
milestone: @issue.milestone.title,
labels: @issue.labels.pluck(:id,:title,:color)
} }
end end
end end
......
$('aside.right-sidebar')[0].outerHTML = "#{escape_javascript(render 'shared/issuable/sidebar', issuable: @issue)}"); $('aside.right-sidebar')[0].outerHTML = "#{escape_javascript(render 'shared/issuable/sidebar', issuable: @issue)}";
$('aside.right-sidebar').effect('highlight') $('aside.right-sidebar').effect('highlight');
new Issue(); new Issue();
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment