summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-07-05 10:23:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-07-05 10:23:19 +0000
commitc6aba2a672a39a2c0f5303c511907de860568070 (patch)
treef9150d85a439fb277d657565a561256498d6fcbc
parentd24e6710f430a73eeaa57ed02d3eaf87d90ab3db (diff)
downloadredmine-c6aba2a672a39a2c0f5303c511907de860568070.tar.gz
redmine-c6aba2a672a39a2c0f5303c511907de860568070.zip
Merged r14396 (#17757).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14398 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--public/javascripts/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index a3ead6b23..74d9888d7 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -622,7 +622,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();
}
}