From a8993e034721be97dbd5752c04038a8e877a2f13 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 5 Jul 2015 10:23:24 +0000 Subject: [PATCH] Merged r14396 (#17757). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14399 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index b5560962f..a9a994655 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(); } }