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

nap naparuba at gmail.com
Tue Feb 28 22:06:42 UTC 2012


The following commit has been merged in the debian/master branch:
commit 75c7173488ab671d0eac5df2bf217f32b6e388ad
Author: nap <naparuba at gmail.com>
Date:   Thu Nov 17 21:35:58 2011 +0100

    Fix: /wall page under ipad

diff --git a/shinken/webui/plugins/wall/htdocs/js/snowstack.js b/shinken/webui/plugins/wall/htdocs/js/snowstack.js
index 2b66df1..a4ccfd3 100644
--- a/shinken/webui/plugins/wall/htdocs/js/snowstack.js
+++ b/shinken/webui/plugins/wall/htdocs/js/snowstack.js
@@ -477,7 +477,8 @@ global.snowstack_init = function (imagefun, options)
     
     target.addEventListener('touchstart', function (e)
 			    {
-				startX = event.touches[0].pageX;
+				//alert('bla');
+				startX = e.touches[0].pageX;
 				lastX = startX;
 				e.preventDefault();
 				return false;
@@ -486,19 +487,30 @@ global.snowstack_init = function (imagefun, options)
     target.addEventListener('touchmove', function (e)
 			    {
 				lastX = event.touches[0].pageX;
-				var dx = lastX - startX;
-				keys.left = (dx > 20);
-				keys.right = (dx < 20);
-				updatekeys();
-				startX = lastX;
+				//var dx = lastX - startX;
+				//alert(dx);
+				//keys.left = (dx > 10);
+				//keys.right = (dx < 10);
+				//updatekeys();
+				//startX = lastX;
 				e.preventDefault();
 				return false;
 			    }, true);
     
     target.addEventListener('touchend', function (e)
 			    {
-				keys.left = false;
-				keys.right = false;
+				//alert('bla');
+				//lastX = e.touches[0].pageX;
+				var dx = lastX - startX;
+				//alert(dx);
+				keys.left = (dx > 10);
+				keys.right = (dx < 10);
+				//alert(keys.left);
+				updatekeys();
+
+				//alert(dx);
+				/*keys.left = false;
+				keys.right = false;*/
 				e.preventDefault();
 				return false;
 			    }, true);
diff --git a/shinken/webui/views/layout.tpl b/shinken/webui/views/layout.tpl
index 9a1df88..35fb382 100644
--- a/shinken/webui/views/layout.tpl
+++ b/shinken/webui/views/layout.tpl
@@ -20,6 +20,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
       <title>{{title or 'No title'}}</title>
       
       <link rel="stylesheet" type="text/css" href="/static/css/nav.css"/>

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list