Commit af81ff4e098241fae4f61ddd3542c44a457fba2c
1 parent
22c00e64
Exists in
master
and in
4 other branches
Changed 'javascript:;' links to '#'
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/views/notes/_note.html.haml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | Link here |
7 | 7 | |
8 | 8 | - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) |
9 | - = link_to "javascript:;", title: "Edit comment", class: "js-note-edit" do | |
9 | + = link_to "#", title: "Edit comment", class: "js-note-edit" do | |
10 | 10 | %i.icon-edit |
11 | 11 | = link_to project_note_path(@project, note), title: "Remove comment", method: :delete, confirm: 'Are you sure you want to remove this comment?', remote: true, class: "danger js-note-delete" do |
12 | 12 | %i.icon-trash.cred |
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 | %span.file_name.js-attachment-filename File name... |
46 | 46 | = f.file_field :attachment, class: "js-note-attachment-input hide" |
47 | 47 | |
48 | - = link_to 'Cancel', "javascript:;", class: "btn btn-cancel note-edit-cancel" | |
48 | + = link_to 'Cancel', "#", class: "btn btn-cancel note-edit-cancel" | |
49 | 49 | |
50 | 50 | |
51 | 51 | - if note.attachment.url | ... | ... |