summaryrefslogtreecommitdiffstats
path: root/app/views/documents
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-22 16:34:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-22 16:34:54 +0000
commit4972084345def0774b7d3d9892f47ed89e215e28 (patch)
tree0f8d705fa6ef6356ab240ad765399c1da1f432ac /app/views/documents
parentdfab202cdec1e4cba0c10281142090c74ccabaf8 (diff)
downloadredmine-4972084345def0774b7d3d9892f47ed89e215e28.tar.gz
redmine-4972084345def0774b7d3d9892f47ed89e215e28.zip
Automatically focus several form fields.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2295 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r--app/views/documents/index.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/index.rhtml b/app/views/documents/index.rhtml
index 14d997360..7449b67c6 100644
--- a/app/views/documents/index.rhtml
+++ b/app/views/documents/index.rhtml
@@ -2,7 +2,7 @@
<%= link_to_if_authorized l(:label_document_new),
{:controller => 'documents', :action => 'new', :project_id => @project},
:class => 'icon icon-add',
- :onclick => 'Element.show("add-document"); return false;' %>
+ :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %>
</div>
<div id="add-document" style="display:none;">