[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Naparuba naparuba at gmail.com
Tue Feb 28 22:06:36 UTC 2012


The following commit has been merged in the debian/master branch:
commit 92feba9b21b5fa1f8e62c43b22a0d7841c7c33c7
Author: Naparuba <naparuba at gmail.com>
Date:   Thu Nov 17 10:14:00 2011 +0100

    Fix : bug on hovering image under FX.

diff --git a/etc/shinken-specific.cfg b/etc/shinken-specific.cfg
index afcc9ae..fe5905f 100644
--- a/etc/shinken-specific.cfg
+++ b/etc/shinken-specific.cfg
@@ -184,7 +184,7 @@ define module{
        # ; can be also : wsgiref, cherrypy, paste, tornado, twisted
        # ; or gevent. automeans beast find in the system.
 
-       modules		Apache_passwd,ActiveDir_UI,Cfg_password
+       modules		Apache_passwd,ActiveDir_UI,Cfg_password,PNP_UI
        # Modules for the WebUI.
        # Apache_passwd : use an Apache htpasswd files for auth
        # ActiveDir_UI : use AD for auth and photo collect
diff --git a/shinken/webui/plugins/problems/htdocs/js/img_hovering.js b/shinken/webui/plugins/problems/htdocs/js/img_hovering.js
index e77ef6e..7012f5d 100644
--- a/shinken/webui/plugins/problems/htdocs/js/img_hovering.js
+++ b/shinken/webui/plugins/problems/htdocs/js/img_hovering.js
@@ -29,6 +29,9 @@
 var mouse_abs_x = 0;
 var mouse_abs_y = 0;
 
+var mouse_rel_x = 0;
+var mouse_rel_y = 0;
+
 function create_img(src, alt){
     var img = document.createElement("img");
 
@@ -67,7 +70,7 @@ function display_hover_img(src, alt){
     var pos_y = mouse_abs_y + 20;
 
     // If too low, go higher. We use the relative y position here
-    if(pagehigth - event.clientY < 200){
+    if(pagehigth - mouse_rel_y < 200){
         pos_y = pos_y - 300;
     }
 
@@ -88,10 +91,15 @@ function hide_hover_img(){
     div.fade('out');
 }
 
-// When we move, we save our mouse position
+// When we move, we save our mouse position, both
+// absolute and relative
 window.addEvent('domready', function(){
     document.onmousemove = function(e){
 	mouse_abs_x = e.pageX;
 	mouse_abs_y = e.pageY;
+	
+	mouse_rel_x = e.clientX;
+	mouse_rel_y = e.clientY;
+
     };
 });

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list