mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
js: Preserve scroll position if focus is forced to a particular element
This commit is contained in:
parent
8bc84a5f9e
commit
3464455021
@ -1077,7 +1077,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var scrollTarget = $container;
|
var scrollTarget = $container;
|
||||||
if (! forceFocus && typeof containerId !== 'undefined') {
|
if (typeof containerId !== 'undefined') {
|
||||||
if (autorefresh || autoSubmit) {
|
if (autorefresh || autoSubmit) {
|
||||||
if ($container.css('display') === 'flex') {
|
if ($container.css('display') === 'flex') {
|
||||||
var $scrollableContent = $container.children('.content');
|
var $scrollableContent = $container.children('.content');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user