Browse Source

Adds a "Delete" button to issue notes (#1725).

git-svn-id: http://svn.redmine.org/redmine/trunk@15072 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.3.0
Jean-Philippe Lang 8 years ago
parent
commit
936aceb8f5
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      app/helpers/journals_helper.rb

+ 6
- 0
app/helpers/journals_helper.rb View 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)

Loading…
Cancel
Save