diff options
Diffstat (limited to 'app/views/documents/index.html.erb')
-rw-r--r-- | app/views/documents/index.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb index fd47c3842..28fc74684 100644 --- a/app/views/documents/index.html.erb +++ b/app/views/documents/index.html.erb @@ -1,6 +1,6 @@ <div class="contextual"> <%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add', - :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' if User.current.allowed_to?(:manage_documents, @project) %> + :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:manage_documents, @project) %> </div> <div id="add-document" style="display:none;"> @@ -9,7 +9,7 @@ <%= render :partial => 'form', :locals => {:f => f} %> <p> <%= submit_tag l(:button_create) %> - <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-document")' %> + <%= link_to l(:button_cancel), "#", :onclick => '$("#add-document").hide(); return false;' %> </p> <% end %> </div> |