diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-06-24 01:10:05 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-21 22:35:25 +0300 |
commit | ebf915511359c336b99c1127c5b902f8757ba5e0 (patch) | |
tree | b5218490eb6ae86b1f86aa9f3bf4be8e7bf73967 /app/views/projects/issues | |
parent | e57093ff627a8fdf97fc5398808f1427e26463ad (diff) |
Add data required for note form
Diffstat (limited to 'app/views/projects/issues')
-rw-r--r-- | app/views/projects/issues/_discussion.html.haml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/issues/_discussion.html.haml b/app/views/projects/issues/_discussion.html.haml index 960366a4827..04e3211fb87 100644 --- a/app/views/projects/issues/_discussion.html.haml +++ b/app/views/projects/issues/_discussion.html.haml @@ -12,3 +12,9 @@ / #notes{style: "margin-top: 150px"} / = render 'shared/notes/notes_with_form', :autocomplete => true + +:javascript + window.gl.issueData = #{serialize_issuable(@issue)}; + window.gl.currentUserData = #{UserSerializer.new.represent(current_user).to_json}; + +%section#note-form{ data: { new_session_path: new_session_path(:user, redirect_to_referer: 'yes') } } |