summaryrefslogtreecommitdiffstats
path: root/app/views/messages/new.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/messages/new.html.erb')
-rw-r--r--app/views/messages/new.html.erb8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb
index f1dddb6f5..fbdac695f 100644
--- a/app/views/messages/new.html.erb
+++ b/app/views/messages/new.html.erb
@@ -3,13 +3,7 @@
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<%= submit_tag l(:button_create) %>
- <%= link_to_remote l(:label_preview),
- { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
- :method => 'post',
- :update => 'preview',
- :with => "Form.serialize('message-form')",
- :complete => "Element.scrollTo('preview')"
- }, :accesskey => accesskey(:preview) %>
+ <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
<% end %>
<div id="preview" class="wiki"></div>