Commit 2b6d281f7f0f22971a6d0b3bdfdfb880de4024e8

Authored by Felipe Bormann
1 parent 95dd7630

monthly chart is now initialized when the user loads general report with the act…

…ual month being displayed
Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
dashboards/static/dashboards/js/behavior.js
... ... @@ -24,7 +24,13 @@ $(document).ready(function(){
24 24 });
25 25  
26 26  
27   -
  27 + //first call to month selector
  28 + $.get('/analytics/amount_active_users_per_day', {month: $('#month_selector option')[(new Date()).getMonth()].text }).done(function(data){
  29 + $('#month_selector').val($('#month_selector option')[(new Date()).getMonth()].text); //update value to actual month
  30 + charts.month_heatmap(data, '#right-chart-body');
  31 + });
  32 +
  33 +
28 34  
29 35 });
30 36  
... ...