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
This commit is contained in:
Jean-Philippe Lang 2007-09-06 21:56:40 +00:00
parent 422677b9b7
commit 98a01d62c2
1 changed files with 3 additions and 1 deletions

View File

@ -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 %>