[icinga-checkins] icinga.org: icingaweb2/master: Fix exception in navigation.js

git at icinga.org git at icinga.org
Tue Dec 13 13:47:31 CET 2016


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

Author: Eric Lippmann <eric.lippmann at icinga.com>
Date:   Tue Dec 13 13:31:46 2016 +0100

Fix exception in navigation.js

---

 public/js/icinga/behavior/navigation.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js
index 1fc462a..bd71179 100644
--- a/public/js/icinga/behavior/navigation.js
+++ b/public/js/icinga/behavior/navigation.js
@@ -178,7 +178,9 @@
      * Remove all active elements
      */
     Navigation.prototype.clear = function() {
-        this.$menu.find('.active').removeClass('active');
+        if (this.$menu) {
+            this.$menu.find('.active').removeClass('active');
+        }
     };
 
     /**



More information about the icinga-checkins mailing list