mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 19:16:22 +02:00
Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,11 +23,12 @@ function toggleCheckboxesBySelector(selector) {
|
||||
}
|
||||
|
||||
function showAndScrollTo(id, focus) {
|
||||
$('#'+id).show();
|
||||
if (focus !== null) {
|
||||
$('#'+focus).focus();
|
||||
const el = document.getElementById(id);
|
||||
if (el) {
|
||||
el.style.display = ''; // show()
|
||||
if (focus) document.getElementById(focus)?.focus({ preventScroll: true });
|
||||
el.scrollIntoView({ behavior: 'instant' });
|
||||
}
|
||||
$('html, body').animate({scrollTop: $('#'+id).offset().top}, 100);
|
||||
}
|
||||
|
||||
function toggleRowGroup(el) {
|
||||
|
||||
Reference in New Issue
Block a user