summaryrefslogtreecommitdiffstats
path: root/app/views/boards
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/boards
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/boards')
-rw-r--r--app/views/boards/show.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/boards/show.rhtml b/app/views/boards/show.rhtml
index adf0b46b4..011a25e06 100644
--- a/app/views/boards/show.rhtml
+++ b/app/views/boards/show.rhtml
@@ -4,7 +4,7 @@
<%= link_to_if_authorized l(:label_message_new),
{:controller => 'messages', :action => 'new', :board_id => @board},
:class => 'icon icon-add',
- :onclick => 'Element.show("add-message"); return false;' %>
+ :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %>
<%= watcher_tag(@board, User.current) %>
</div>