Assign notes object to a variable

This commit is contained in:
Grzegorz Bizon 2015-12-14 09:41:30 +01:00 committed by Grzegorz Bizon
parent 3e789eab8b
commit 6fb120d1b0
1 changed files with 1 additions and 1 deletions

View File

@ -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}")