summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/wiki/show.html.erb')
-rw-r--r--app/views/wiki/show.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 08763a335..90c1cc006 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -40,7 +40,7 @@
<% if @editable && authorize_for('wiki', 'add_attachment') %>
<div id="wiki_add_attachment">
-<p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
+<p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
:id => 'attach_files_link' %></p>
<%= form_tag({:controller => 'wiki', :action => 'add_attachment',
:project_id => @project, :id => @page.title},
@@ -50,7 +50,7 @@
<p><%= render :partial => 'attachments/form' %></p>
</div>
<%= submit_tag l(:button_add) %>
-<%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %>
+<%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); return false;" %>
<% end %>
</div>
<% end %>