diff options
Diffstat (limited to 'app/assets/javascripts/calendar.js.coffee')
-rw-r--r-- | app/assets/javascripts/calendar.js.coffee | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/assets/javascripts/calendar.js.coffee b/app/assets/javascripts/calendar.js.coffee deleted file mode 100644 index 44d75bd694f..00000000000 --- a/app/assets/javascripts/calendar.js.coffee +++ /dev/null @@ -1,38 +0,0 @@ -class @Calendar - options = - month: "short" - day: "numeric" - year: "numeric" - - constructor: (timestamps, starting_year, starting_month, calendar_activities_path) -> - cal = new CalHeatMap() - cal.init - itemName: ["contribution"] - data: timestamps - start: new Date(starting_year, starting_month) - domainLabelFormat: "%b" - id: "cal-heatmap" - domain: "month" - subDomain: "day" - range: 12 - tooltip: true - label: - position: "top" - legend: [ - 0 - 10 - 20 - 30 - ] - legendCellPadding: 3 - onClick: (date, count) -> - formated_date = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate() - $.ajax - url: calendar_activities_path - data: - date: formated_date - cache: false - dataType: "html" - success: (data) -> - $(".user-calendar-activities").html data - |