From: Jean-Philippe Lang Date: Tue, 21 Oct 2014 20:53:07 +0000 (+0000) Subject: Adds a Cancel button on issue edit view (#18051). X-Git-Tag: 3.0.0~490 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=146af67b3ce719a281b5780027d9ece69022666a;p=redmine.git Adds a Cancel button on issue edit view (#18051). Patch by Marcin Świątkiewicz. git-svn-id: http://svn.redmine.org/redmine/trunk@13477 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb index 259df7357..e09a72695 100644 --- a/app/views/issues/_edit.html.erb +++ b/app/views/issues/_edit.html.erb @@ -46,6 +46,7 @@ <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %> <%= submit_tag l(:button_submit) %> <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %> + | <%= link_to l(:button_cancel), {}, :onclick => "$('#update').hide(); return false;" %> <% end %>