summaryrefslogtreecommitdiffstats
path: root/app/views/journals/_notes_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/journals/_notes_form.html.erb')
-rw-r--r--app/views/journals/_notes_form.html.erb11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/journals/_notes_form.html.erb b/app/views/journals/_notes_form.html.erb
index f451dbbeb..f039b478c 100644
--- a/app/views/journals/_notes_form.html.erb
+++ b/app/views/journals/_notes_form.html.erb
@@ -6,14 +6,9 @@
:rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
<%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
<p><%= submit_tag l(:button_save) %>
- <%= link_to_remote l(:label_preview),
- { :url => preview_edit_issue_path(:project_id => @project, :id => @journal.issue),
- :method => 'post',
- :update => "journal_#{@journal.id}_preview",
- :with => "Form.serialize('journal-#{@journal.id}-form')",
- :complete => "Element.scrollTo('journal_#{@journal.id}_preview')"
- }, :accesskey => accesskey(:preview) %>
- |
+ <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @journal.issue),
+ "journal-#{@journal.id}-form",
+ "journal_#{@journal.id}_preview" %> |
<%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
"Element.show('journal-#{@journal.id}-notes'); return false;" %></p>