Replaced window.hash= by Element.scrollTo()

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1136 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-02-11 20:45:46 +00:00
parent 15ed53cf17
commit 93ef8b7f77
5 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -16,12 +16,11 @@
:method => 'post',
:update => 'preview',
:with => "Form.serialize('wiki_form')",
:complete => "location.href='#preview-top'"
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %></p>
<%= wikitoolbar_for 'content_text' %>
<% end %>
<a name="preview-top"></a>
<div id="preview" class="wiki"></div>
<% content_for :header_tags do %>