Browse Source

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
tags/0.6.0
Jean-Philippe Lang 17 years ago
parent
commit
98a01d62c2
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      app/views/wiki/edit.rhtml

+ 3
- 1
app/views/wiki/edit.rhtml View File

{ :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