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

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


The following commit has been merged in the debian/master branch:
commit f0841b79849c233e4d4fe8b7f56cad0453a5ec12
Author: Naparuba <naparuba at gmail.com>
Date:   Wed Nov 16 16:40:21 2011 +0100

    Add : fadein detail page after 5s.

diff --git a/shinken/webui/plugins/eltdetail/htdocs/js/hide.js b/shinken/webui/plugins/eltdetail/htdocs/js/hide.js
index bf39507..9db186d 100644
--- a/shinken/webui/plugins/eltdetail/htdocs/js/hide.js
+++ b/shinken/webui/plugins/eltdetail/htdocs/js/hide.js
@@ -137,11 +137,22 @@ window.addEvent('domready', function(){
     /* make it happen! */
     var fades = $$('.fadein');
 
-    var doFadeIn = function(e) {
+    // The function that really remvoe fade
+    function remove_fade(){
+	fades.fade('in');
+    }
+
+    // The function that will eat the event
+    function remove_fade_event(e){
 	if(!e.key || e.key == 'tab') {
-	    fades.fade('in');
-	}
-    };
-    $(document.body).oneEvent('mousemove',doFadeIn);
+	    remove_fade();
+        }
+    }
+
+    // We link our one time event
+    $(document.body).oneEvent('mousemove', remove_fade_event);
+
+    // Or just launch it after 5s
+    setTimeout(remove_fade, 5000);
 
 });
\ No newline at end of file

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list