mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 08:16:03 +01:00
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
This commit is contained in:
@@ -627,7 +627,7 @@ function addFormObserversForDoubleSubmit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function defaultFocus(){
|
function defaultFocus(){
|
||||||
if ($('#content :focus').length == 0) {
|
if (($('#content :focus').length == 0) && (window.location.hash == '')) {
|
||||||
$('#content input[type=text], #content textarea').first().focus();
|
$('#content input[type=text], #content textarea').first().focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user