From 7286fc8c3ec5b677b111f83bf415f44ebc26b6c2 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sat, 15 Jul 2017 22:39:12 +0000 Subject: [PATCH] Adds a link to dhhr.php This file is currently not in devel, but it is being used for Positive Spin. --- js/stats.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/stats.js b/js/stats.js index c4c1e2b..64f7bc0 100644 --- a/js/stats.js +++ b/js/stats.js @@ -40,6 +40,15 @@ $(function(){ }); e.preventDefault(); }); + + $("#dhhr_hours").on("click keypress", function(e){ + var range_display = range.pickmeup('get_date', true); + $.post("dhhr.php", {range1: range_display[0], range2: range_display[1]}, function (data) { + $("body").html(data); + //range.pickmeup.date($range_display[0]); + }); + e.preventDefault(); + }); $("#shops").on("click keypress", function(e){ var range_display = range.pickmeup('get_date', true);