parent
34344915f2
commit
e468329051
|
@ -734,8 +734,11 @@
|
||||||
|
|
||||||
var activeElementPath = false;
|
var activeElementPath = false;
|
||||||
var focusFallback = false;
|
var focusFallback = false;
|
||||||
|
|
||||||
if (forceFocus && forceFocus.length) {
|
if (forceFocus && forceFocus.length) {
|
||||||
activeElementPath = this.icinga.utils.getCSSPath($(forceFocus));
|
activeElementPath = this.icinga.utils.getCSSPath($(forceFocus));
|
||||||
|
} else if (document.activeElement.id === 'search') {
|
||||||
|
activeElementPath = '#search';
|
||||||
} else if (document.activeElement
|
} else if (document.activeElement
|
||||||
&& document.activeElement !== document.body
|
&& document.activeElement !== document.body
|
||||||
&& $.contains($container[0], document.activeElement)
|
&& $.contains($container[0], document.activeElement)
|
||||||
|
|
Loading…
Reference in New Issue