summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-14 09:41:30 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2015-12-15 14:19:35 +0100
commit6fb120d1b0ad8adee7c5c431c7f8a399a2da5cea (patch)
treefc8b1c8b52147577423cb9cad2dd67acf0b97dbc
parent3e789eab8be93c45685c417488da102d996209ba (diff)
downloadgitlab-ce-6fb120d1b0ad8adee7c5c431c7f8a399a2da5cea.tar.gz
Assign notes object to a variable
-rw-r--r--app/views/projects/notes/_notes_with_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/notes/_notes_with_form.html.haml b/app/views/projects/notes/_notes_with_form.html.haml
index 99c1b0fa43e..eb378b42603 100644
--- a/app/views/projects/notes/_notes_with_form.html.haml
+++ b/app/views/projects/notes/_notes_with_form.html.haml
@@ -7,4 +7,4 @@
= render "projects/notes/form", view: diff_view
:javascript
- new Notes("#{namespace_project_notes_path(namespace_id: @project.namespace, target_id: @noteable.id, target_type: @noteable.class.name.underscore)}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}")
+ var notes = new Notes("#{namespace_project_notes_path(namespace_id: @project.namespace, target_id: @noteable.id, target_type: @noteable.class.name.underscore)}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}")