diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2013-12-10 23:33:21 +0400 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2013-12-10 23:33:21 +0400 |
commit | bfacf1366842055d7338df0ad5f705d5f819a60b (patch) | |
tree | d0f653281da0d04dff47cb1810869117a583176e /app/views/projects/snippets | |
parent | 72f2be8666ed1ca9461c36352c2b9479f352c155 (diff) |
Fixed all the confirm: deprecation warnings
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r-- | app/views/projects/snippets/_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/snippets/_form.html.haml b/app/views/projects/snippets/_form.html.haml index d414ee2d1ec..198ec2170c7 100644 --- a/app/views/projects/snippets/_form.html.haml +++ b/app/views/projects/snippets/_form.html.haml @@ -34,7 +34,7 @@ = link_to "Cancel", project_snippets_path(@project), class: "btn btn-cancel" - unless @snippet.new_record? - = link_to 'Remove snippet', project_snippet_path(@project, @snippet), confirm: 'Are you sure?', method: :delete, class: "btn pull-right btn-remove delete-snippet prepend-left-10", id: "destroy_snippet_#{@snippet.id}" + = link_to 'Remove snippet', project_snippet_path(@project, @snippet), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn pull-right btn-remove delete-snippet prepend-left-10", id: "destroy_snippet_#{@snippet.id}" :javascript var editor = ace.edit("editor"); |