[icinga-checkins] icinga.org: icingaweb2/master: loader.js: fix JS error on IE

git at icinga.org git at icinga.org
Mon Feb 29 21:18:56 CET 2016


Module: icingaweb2
Branch: master
Commit: 96f50c5dfa93f953036ef4e13f119943011d5a1f
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=96f50c5dfa93f953036ef4e13f119943011d5a1f

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon Feb 29 21:18:46 2016 +0100

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 323ca30..2ff4d7f 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



More information about the icinga-checkins mailing list