From a9785a4adb76afcafe9a4c750b3d2703d62b58b8 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 27 May 2016 16:35:20 +0100 Subject: Fixed issue with calendar activity button not sending request correctly --- app/assets/javascripts/calendar.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/calendar.js.coffee b/app/assets/javascripts/calendar.js.coffee index f9c7bffdadb..26a26061539 100644 --- a/app/assets/javascripts/calendar.js.coffee +++ b/app/assets/javascripts/calendar.js.coffee @@ -175,7 +175,7 @@ class @Calendar .range(['#acd5f2', '#254e77']) .domain([0, 3]) - clickDay: (stamp) -> + clickDay: (stamp) => if @currentSelectedDate isnt stamp.date @currentSelectedDate = stamp.date formatted_date = @currentSelectedDate.getFullYear() + "-" + (@currentSelectedDate.getMonth()+1) + "-" + @currentSelectedDate.getDate() -- cgit v1.2.1