From 98a01d62c2bed5140358b471fd4b178f0d82aa0c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 6 Sep 2007 21:56:40 +0000 Subject: [PATCH] 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 --- app/views/wiki/edit.rhtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 368ab098..7579527c 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -19,11 +19,13 @@ { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, :method => 'post', :update => 'preview', - :with => "Form.serialize('wiki_form')" + :with => "Form.serialize('wiki_form')", + :complete => "location.href='#preview-top'" } %>

<%= wikitoolbar_for 'content_text' %> <% end %> +
<% content_for :header_tags do %>