Fixed issue with calendar activity button not sending request correctly

This commit is contained in:
Phil Hughes 2016-05-27 16:35:20 +01:00
parent d59f0d90e4
commit a9785a4adb

View file

@ -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()