Commit af81ff4e098241fae4f61ddd3542c44a457fba2c

Authored by Jack Weeden
1 parent 22c00e64

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,7 +6,7 @@
6 Link here 6 Link here
7   7  
8 - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) 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 %i.icon-edit 10 %i.icon-edit
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 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 %i.icon-trash.cred 12 %i.icon-trash.cred
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 %span.file_name.js-attachment-filename File name... 45 %span.file_name.js-attachment-filename File name...
46 = f.file_field :attachment, class: "js-note-attachment-input hide" 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 - if note.attachment.url 51 - if note.attachment.url