Automatically scroll down to the preview when previewing wiki page.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@712 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Philippe Lang 17 years ago
parent 422677b9b7
commit 98a01d62c2
  1. 4
      app/views/wiki/edit.rhtml

@ -19,11 +19,13 @@
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
:method => 'post', :method => 'post',
:update => 'preview', :update => 'preview',
:with => "Form.serialize('wiki_form')" :with => "Form.serialize('wiki_form')",
:complete => "location.href='#preview-top'"
} %></p> } %></p>
<%= wikitoolbar_for 'content_text' %> <%= wikitoolbar_for 'content_text' %>
<% end %> <% end %>
<a name="preview-top"></a>
<div id="preview" class="wiki"></div> <div id="preview" class="wiki"></div>
<% content_for :header_tags do %> <% content_for :header_tags do %>

Loading…
Cancel
Save