diff options
author | Jack Weeden <jack@ajack.org> | 2013-06-30 17:44:59 +0100 |
---|---|---|
committer | Jack Weeden <jack@ajack.org> | 2013-07-01 10:48:02 +0100 |
commit | af81ff4e098241fae4f61ddd3542c44a457fba2c (patch) | |
tree | b21960f1539a1f8087fe0a973baa7c58c9c78a0f /app | |
parent | 22c00e64626791bf138a7691205d3e6e89cd315c (diff) | |
download | gitlab-ce-af81ff4e098241fae4f61ddd3542c44a457fba2c.tar.gz |
Changed 'javascript:;' links to '#'
Diffstat (limited to 'app')
-rw-r--r-- | app/views/notes/_note.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/notes/_note.html.haml b/app/views/notes/_note.html.haml index 6b08aa5afe8..68137960b74 100644 --- a/app/views/notes/_note.html.haml +++ b/app/views/notes/_note.html.haml @@ -6,7 +6,7 @@ Link here - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) - = link_to "javascript:;", title: "Edit comment", class: "js-note-edit" do + = link_to "#", title: "Edit comment", class: "js-note-edit" do %i.icon-edit = 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 %i.icon-trash.cred @@ -45,7 +45,7 @@ %span.file_name.js-attachment-filename File name... = f.file_field :attachment, class: "js-note-attachment-input hide" - = link_to 'Cancel', "javascript:;", class: "btn btn-cancel note-edit-cancel" + = link_to 'Cancel', "#", class: "btn btn-cancel note-edit-cancel" - if note.attachment.url |