Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-06-24 01:10:05 +0300
committerFatih Acet <acetfatih@gmail.com>2017-07-21 22:35:25 +0300
commitebf915511359c336b99c1127c5b902f8757ba5e0 (patch)
treeb5218490eb6ae86b1f86aa9f3bf4be8e7bf73967 /app/views/projects/issues
parente57093ff627a8fdf97fc5398808f1427e26463ad (diff)
Add data required for note form
Diffstat (limited to 'app/views/projects/issues')
-rw-r--r--app/views/projects/issues/_discussion.html.haml6
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') } }