From 5e6b05f603f5318e0c6af5273784663b14e08170 Mon Sep 17 00:00:00 2001 From: Emrys Date: Fri, 1 Feb 2019 15:39:13 +0000 Subject: [PATCH 1/3] added button classes and matching css entries --- Lib/timezone-js | 1 + graph.css | 16 +++------------- view.php | 4 ++-- 3 files changed, 6 insertions(+), 15 deletions(-) create mode 160000 Lib/timezone-js diff --git a/Lib/timezone-js b/Lib/timezone-js new file mode 160000 index 0000000..c071c49 --- /dev/null +++ b/Lib/timezone-js @@ -0,0 +1 @@ +Subproject commit c071c498822c4aeacfe9159f058571e83dfb9acd diff --git a/graph.css b/graph.css index 796d1f4..1361657 100644 --- a/graph.css +++ b/graph.css @@ -39,20 +39,10 @@ padding:10px; } -.feed-options-show-options { - float:right; - padding:10px; - width:150px; - text-align:center; - border-left: 1px solid #eee; -} - +.feed-options-show-options, .feed-options-show-stats { - float:right; - padding:10px; - width:150px; - text-align:center; - border-left: 1px solid #eee; + float: right; + margin: 5px; } #vis-mode-toggle, #vis-mode-user, #vis-mode-groups{ diff --git a/view.php b/view.php index 75190cf..b15c9f6 100644 --- a/view.php +++ b/view.php @@ -174,8 +174,8 @@
-
-
+
+
From 4b06099ee14b2cd93330436752f5ab047b9e980b Mon Sep 17 00:00:00 2001 From: Emrys Date: Fri, 1 Feb 2019 17:33:58 +0000 Subject: [PATCH 2/3] made button an tag --- view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view.php b/view.php index b15c9f6..1f3c269 100644 --- a/view.php +++ b/view.php @@ -174,8 +174,8 @@
From 19bfe5f94b5f96537926ca187a2c4cca3e0352cf Mon Sep 17 00:00:00 2001 From: Emrys Date: Fri, 1 Feb 2019 17:39:09 +0000 Subject: [PATCH 3/3] stopped link from moving page to top --- graph.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/graph.js b/graph.js index a339a2a..cfde964 100644 --- a/graph.js +++ b/graph.js @@ -512,18 +512,20 @@ function graph_init_editor() // console.log(country); }); - $(".feed-options-show-stats").click(function(){ + $(".feed-options-show-stats").click(function(event){ $("#feed-options-table").hide(); $("#feed-stats-table").show(); $(".feed-options-show-options").show(); $(".feed-options-show-stats").hide(); - }); + event.preventDefault(); + }); - $(".feed-options-show-options").click(function(){ + $(".feed-options-show-options").click(function(event){ $("#feed-options-table").show(); $("#feed-stats-table").hide(); $(".feed-options-show-options").hide(); $(".feed-options-show-stats").show(); + event.preventDefault(); }); }