From a8993e034721be97dbd5752c04038a8e877a2f13 2015-07-05 10:23:24 From: Jean-Philippe Lang Date: 2015-07-05 10:23:24 Subject: [PATCH] Merged r14396 (#17757). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14399 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index b556096..a9a9946 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -585,7 +585,7 @@ function addFormObserversForDoubleSubmit() { } function defaultFocus(){ - if ($('#content :focus').length == 0) { + if (($('#content :focus').length == 0) && (window.location.hash == '')) { $('#content input[type=text], #content textarea').first().focus(); } }