Merged r14396 (#17757).

git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14397 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-07-05 10:23:12 +00:00
parent 3902c5cf24
commit d7230643c8

View File

@@ -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();
}
}