Assign notes object to a variable
This commit is contained in:
parent
3e789eab8b
commit
6fb120d1b0
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue