]> source.dussan.org Git - redmine.git/commitdiff
Adds a "Delete" button to issue notes (#1725).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 20 Jan 2016 11:05:23 +0000 (11:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 20 Jan 2016 11:05:23 +0000 (11:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15072 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/journals_helper.rb

index 4e9fd386607d6ee5118bf9b8e708bcfd08d5d8c6..00194dbd0daaed985211decf759248ce223538a0 100644 (file)
@@ -42,6 +42,12 @@ module JournalsHelper
                                              :title => l(:button_edit),
                                              :class => 'icon-only icon-edit'
                                             ) if editable
+      links << link_to('',
+                       {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
+                       :remote => true,
+                       :method => :post, :data => {:confirm => l(:text_are_you_sure)}, 
+                       :title => l(:button_delete),
+                       :class => 'icon-only icon-del') if editable
     end
     content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty?
     content << textilizable(journal, :notes)