diff options
Diffstat (limited to 'app/views/messages/show.html.erb')
-rw-r--r-- | app/views/messages/show.html.erb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 639dc2e7c..831d3ec14 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -75,13 +75,7 @@ <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %> <%= render :partial => 'form', :locals => {:f => f, :replying => true} %> <%= submit_tag l(:button_submit) %> - <%= 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> </div> |