]> source.dussan.org Git - redmine.git/commitdiff
Adds a Cancel button on issue edit view (#18051).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Oct 2014 20:53:07 +0000 (20:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Oct 2014 20:53:07 +0000 (20:53 +0000)
Patch by Marcin Świątkiewicz.

git-svn-id: http://svn.redmine.org/redmine/trunk@13477 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_edit.html.erb

index 259df7357638f703b3a2b869b998fce70990a37d..e09a726955b95a1634603cefcd643b9c038b37be 100644 (file)
@@ -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 %>
 
 <div id="preview" class="wiki"></div>