diff options
| author | Phil Hughes <me@iamphill.com> | 2017-07-25 11:56:41 +0100 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2017-07-25 11:56:41 +0100 |
| commit | 205090fcfb741884215723281dfb0afb56efbbfb (patch) | |
| tree | ba1e4ffdeb5757e055dcc862d8d022eb4c48d62d /app/views/shared/notes | |
| parent | e43bda0ebb56991f9f128946fefed375a695eac1 (diff) | |
| download | gitlab-ce-205090fcfb741884215723281dfb0afb56efbbfb.tar.gz | |
Removed inline JS in shared HAML files
Diffstat (limited to 'app/views/shared/notes')
| -rw-r--r-- | app/views/shared/notes/_notes_with_form.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/notes/_notes_with_form.html.haml b/app/views/shared/notes/_notes_with_form.html.haml index f0fcc414756..eae04c9bbb8 100644 --- a/app/views/shared/notes/_notes_with_form.html.haml +++ b/app/views/shared/notes/_notes_with_form.html.haml @@ -22,5 +22,4 @@ = link_to "sign in", new_session_path(:user, redirect_to_referer: 'yes') to comment -:javascript - var notes = new Notes("#{notes_url}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}", #{autocomplete}) +%script.js-notes-data{ type: "application/json" }= initial_notes_data(autocomplete).to_json.html_safe |
