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);