From 96f50c5dfa93f953036ef4e13f119943011d5a1f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 29 Feb 2016 21:18:46 +0100 Subject: [PATCH] loader.js: fix JS error on IE --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 323ca3069..2ff4d7f6f 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -743,7 +743,7 @@ if (forceFocus && forceFocus.length) { activeElementPath = this.icinga.utils.getCSSPath($(forceFocus)); - } else if (document.activeElement.id === 'search') { + } else if (document.activeElement && document.activeElement.id === 'search') { activeElementPath = '#search'; } else if (document.activeElement && document.activeElement !== document.body