Friday, August 16, 2013

Icinga bouncing menus


I got annoyed with the bouncing menues in icinga. Basically they added a 'on hover' to the links, that increases the padding.

You can remove it by deleting the jquery hover:

--- /usr/share/icinga/htdocs/js/menu.js
+++ /usr/share/icinga/htdocs/js/menu.js
@@ -18,13 +18,4 @@
         });

     });
-    // Links
-    $("div#menu ul li a").hover(function( e ) {
-        var speed = 200,
-            padding = 10,
-            mode = e.type === "mouseenter" ? "+=" : "-=";
-        $(this).parent("li").animate({
-            paddingLeft: mode+padding+'px'
-        }, speed );
-    });
 });


No comments:

Post a Comment