]> source.dussan.org Git - redmine.git/commitdiff
Makes subject field get focus on 'New issue' form (#2522).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 16 Jan 2009 20:57:18 +0000 (20:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 16 Jan 2009 20:57:18 +0000 (20:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2266 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/new.rhtml

index 1bae6abaa7117964ce01db1f6645c4e369366f16..94f86dde912b5e4b81321555567b621e6c879ba2 100644 (file)
@@ -15,6 +15,8 @@
                          :with => "Form.serialize('issue-form')",
                          :complete => "Element.scrollTo('preview')"
                        }, :accesskey => accesskey(:preview) %>
+                                                                                        
+               <%= javascript_tag "Form.Element.focus('issue_subject');" %>
 <% end %>
 
 <div id="preview" class="wiki"></div>