summaryrefslogtreecommitdiffstats
path: root/app/views/news/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/edit.html.erb')
-rw-r--r--app/views/news/edit.html.erb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
index 5dd43c3ce..499451bb7 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -3,12 +3,7 @@
<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
-<%= link_to_remote l(:label_preview),
- { :url => preview_news_path(:project_id => @project),
- :method => 'get',
- :update => 'preview',
- :with => "Form.serialize('news-form')"
- }, :accesskey => accesskey(:preview) %>
+<%= preview_link preview_news_path(:project_id => @project), 'news-form' %>
<% end %>
<div id="preview" class="wiki"></div>