@@ -59,7 +59,7 module ApplicationHelper | |||
|
59 | 59 | def show_and_goto_link(name, id, options={}) |
|
60 | 60 | onclick = "Element.show('#{id}'); " |
|
61 | 61 | onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ") |
|
62 |
onclick << " |
|
|
62 | onclick << "Element.scrollTo('#{id}'); " | |
|
63 | 63 | onclick << "return false;" |
|
64 | 64 | link_to(name, "#", options.merge(:onclick => onclick)) |
|
65 | 65 | end |
@@ -32,7 +32,7 | |||
|
32 | 32 | :method => 'post', |
|
33 | 33 | :update => 'preview', |
|
34 | 34 | :with => 'Form.serialize("issue-form")', |
|
35 |
:complete => " |
|
|
35 | :complete => "Element.scrollTo('preview')" | |
|
36 | 36 | }, :accesskey => accesskey(:preview) %> |
|
37 | 37 | <% end %> |
|
38 | 38 |
@@ -12,9 +12,8 | |||
|
12 | 12 | :method => 'post', |
|
13 | 13 | :update => 'preview', |
|
14 | 14 | :with => "Form.serialize('issue-form')", |
|
15 |
:complete => " |
|
|
15 | :complete => "Element.scrollTo('preview')" | |
|
16 | 16 | }, :accesskey => accesskey(:preview) %> |
|
17 | 17 | <% end %> |
|
18 | 18 | |
|
19 | <a name="preview-top"></a> | |
|
20 | 19 | <div id="preview" class="wiki"></div> |
@@ -89,7 +89,6 end %> | |||
|
89 | 89 | <% end %> |
|
90 | 90 | |
|
91 | 91 | <% if authorize_for('issues', 'edit') %> |
|
92 | <a name="update-anchor"></a> | |
|
93 | 92 | <div id="update" style="display:none;"> |
|
94 | 93 | <h3><%= l(:button_update) %></h3> |
|
95 | 94 | <%= render :partial => 'edit' %> |
@@ -16,12 +16,11 | |||
|
16 | 16 | :method => 'post', |
|
17 | 17 | :update => 'preview', |
|
18 | 18 | :with => "Form.serialize('wiki_form')", |
|
19 |
:complete => " |
|
|
19 | :complete => "Element.scrollTo('preview')" | |
|
20 | 20 | }, :accesskey => accesskey(:preview) %></p> |
|
21 | 21 | <%= wikitoolbar_for 'content_text' %> |
|
22 | 22 | <% end %> |
|
23 | 23 | |
|
24 | <a name="preview-top"></a> | |
|
25 | 24 | <div id="preview" class="wiki"></div> |
|
26 | 25 | |
|
27 | 26 | <% content_for :header_tags do %> |
General Comments 0
You need to be logged in to leave comments.
Login now