summaryrefslogtreecommitdiffstats
path: root/app/views/journals
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 17:47:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 17:47:19 +0000
commitff68fff80ed1cc9f95587581be9eb641d7a776e5 (patch)
tree8401052d01792a36dbe5486379e084a574a33c48 /app/views/journals
parentbb2af97dcf4ba9372ce78ba8163cc3dc2794a7bb (diff)
downloadredmine-ff68fff80ed1cc9f95587581be9eb641d7a776e5.tar.gz
redmine-ff68fff80ed1cc9f95587581be9eb641d7a776e5.zip
Adds a helper for preview links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/journals')
-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>