diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-25 13:56:41 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-25 13:56:41 +0300 |
commit | 205090fcfb741884215723281dfb0afb56efbbfb (patch) | |
tree | ba1e4ffdeb5757e055dcc862d8d022eb4c48d62d /app/helpers/notes_helper.rb | |
parent | e43bda0ebb56991f9f128946fefed375a695eac1 (diff) |
Removed inline JS in shared HAML files
Diffstat (limited to 'app/helpers/notes_helper.rb')
-rw-r--r-- | app/helpers/notes_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb index 0a0881d95cf..505579674c9 100644 --- a/app/helpers/notes_helper.rb +++ b/app/helpers/notes_helper.rb @@ -130,4 +130,14 @@ module NotesHelper can?(current_user, :create_note, @project) end end + + def initial_notes_data(autocomplete) + { + notesUrl: notes_url, + notesIds: @notes.map(&:id), + now: Time.now.to_i, + diffView: diff_view, + autocomplete: autocomplete + } + end end |