[icinga-checkins] icinga.org: icingaweb2/master: Remove obsolete dropdown methods from the navigation behavior

git at icinga.org git at icinga.org
Thu Dec 8 17:15:53 CET 2016


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

Author: Eric Lippmann <eric.lippmann at icinga.com>
Date:   Mon Nov 28 12:13:10 2016 +0100

Remove obsolete dropdown methods from the navigation behavior

---

 public/js/icinga/behavior/navigation.js |   19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js
index 48f1923..8ac0d31 100644
--- a/public/js/icinga/behavior/navigation.js
+++ b/public/js/icinga/behavior/navigation.js
@@ -10,8 +10,6 @@
         Icinga.EventListener.call(this, icinga);
         this.on('click', '#menu a', this.linkClicked, this);
         this.on('click', '#menu tr[href]', this.linkClicked, this);
-        this.on('mouseenter', 'li.dropdown', this.dropdownHover, this);
-        this.on('mouseleave', 'li.dropdown', this.dropdownLeave, this);
         this.on('mouseenter', '#menu > nav > ul > li', this.menuTitleHovered, this);
         this.on('mouseleave', '#sidebar', this.leaveSidebar, this);
         this.on('rendered', this.onRendered, this);
@@ -350,23 +348,6 @@
         }
     };
 
-    Navigation.prototype.dropdownHover = function () {
-        $(this).addClass('hover');
-    };
-
-    Navigation.prototype.dropdownLeave = function (event) {
-        var $li = $(this),
-            self = event.data.self;
-        setTimeout(function () {
-            // TODO: make this behave well together with keyboard navigation
-            try {
-                if (!$li.is('li:hover') /*&& ! $li.find('a:focus')*/) {
-                    $li.removeClass('hover');
-                }
-            } catch(e) { /* Bypass because if IE8 */ }
-        }, 300);
-        self.hovered = null;
-    };
     Icinga.Behaviors.Navigation = Navigation;
 
 }) (Icinga, jQuery);



More information about the icinga-checkins mailing list