summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/edit.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/wiki/edit.rhtml')
-rw-r--r--app/views/wiki/edit.rhtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml
index 368ab098b..7579527c8 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'"
} %></p>
<%= wikitoolbar_for 'content_text' %>
<% end %>
+<a name="preview-top"></a>
<div id="preview" class="wiki"></div>
<% content_for :header_tags do %>