summaryrefslogtreecommitdiffstats
path: root/app/views/news/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/index.html.erb')
-rw-r--r--app/views/news/index.html.erb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index b354adcb8..e62cce498 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -11,12 +11,7 @@
:html => { :id => 'news-form', :multipart => true } do |f| %>
<%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
-<%= 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' %> |
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %>
<% end if @project %>
<div id="preview" class="wiki"></div>