Title: [opsview-base] [25] Add patch for contextual menu
- Revision
- 25
- Author
- tvoon
- Date
- 2012-07-31 11:34:28 +0100 (Tue, 31 Jul 2012)
Log Message
Add patch for contextual menu
Modified Paths
Added Paths
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2012-07-31 10:15:04 UTC (rev 24)
+++ trunk/Makefile 2012-07-31 10:34:28 UTC (rev 25)
@@ -791,6 +791,7 @@
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_opsview_iconset.patch
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_default_timezone.patch
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_custom_css.patch
+ cd ${NAGVIS} && patch -p1 < ../patches/nagvis_rightclickmenu_respects_navbar.patch
# TODO update patches that work but with some fuzz
find ${NAGVIS} -name "*.orig" -exec rm {} \;
cp patches/nagvis/opsview.cfg ${NAGVIS}/etc/maps/
===================================================================
--- trunk/patches/nagvis_rightclickmenu_respects_navbar.patch (rev 0)
+++ trunk/patches/nagvis_rightclickmenu_respects_navbar.patch 2012-07-31 10:34:28 UTC (rev 25)
@@ -0,0 +1,28 @@
+diff -ur nagvis-1.4.4.original/wui/includes/js/jsdomenu.js nagvis-1.4.4/wui/includes/js/jsdomenu.js
+--- nagvis-1.4.4.original/wui/includes/js/jsdomenu.js 2009-10-15 16:41:24.000000000 +0000
++++ nagvis-1.4.4/wui/includes/js/jsdomenu.js 2012-07-27 16:18:52.000000000 +0000
+@@ -121,12 +121,22 @@
+ if (!e) {
+ var e = window.event;
+ }
++ var h;
+ if (safari) {
+- return e.clientY - getScrollTop();
++ h= e.clientY - getScrollTop();
+ }
+ else {
+- return e.clientY;
++ h= e.clientY;
+ }
++ /* Opsview patch: Need to cater for the Opsview banner */
++ var opsviewMenu = getElmId('opsview_menu');
++ if (opsviewMenu) {
++ h = h - opsviewMenu.clientHeight;
++ if (h < 0) {
++ h = 100000000000; // Move it off screen if within the top menu
++ }
++ }
++ return h;
+ }
+
+ /*
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins