mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
JS: Re-focus visible elements only
Don't try to re-focus links from dropdown tabs example because they're no longer visible if the page has been loaded.
This commit is contained in:
parent
4251e758a7
commit
7a6d61ceaa
@ -809,7 +809,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
var $activeElement = $(activeElementPath);
|
var $activeElement = $(activeElementPath);
|
||||||
|
|
||||||
if ($activeElement.length) {
|
if ($activeElement.length && $activeElement.is(':visible')) {
|
||||||
$activeElement.focus();
|
$activeElement.focus();
|
||||||
} else if (! autorefresh) {
|
} else if (! autorefresh) {
|
||||||
if (typeof $container.attr('tabindex') === 'undefined') {
|
if (typeof $container.attr('tabindex') === 'undefined') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user