diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-04 08:56:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-04 08:56:52 +0000 |
commit | ec1937479ffa9a41312281fdce80e565d33120d5 (patch) | |
tree | e9742f6397a16c0ae19464d22e4b788f4fb2a069 /public | |
parent | 1bf7219d771dfd5e9215d9deeec7470135760857 (diff) | |
download | redmine-ec1937479ffa9a41312281fdce80e565d33120d5.tar.gz redmine-ec1937479ffa9a41312281fdce80e565d33120d5.zip |
Don't focus first input when URL contains a hash (#17757).
git-svn-id: http://svn.redmine.org/redmine/trunk@14396 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index bc56f43b2..888963a0a 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -627,7 +627,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(); } } |