--- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -12,6 +12,7 @@ + @@ -37,15 +38,6 @@

Site Usage

${usage_nav('Site-wide')} - -
-
- - ${month_selector(c.month, c.months, c.day)} - - -
-
@@ -142,7 +166,13 @@ $(function() { CKAN.GA_Reports.bind_sparklines(); CKAN.GA_Reports.bind_sidebar(); - $(window).trigger('hashchange'); + CKAN.GA_Reports.bind_month_selector(); + if (!window.location.hash) { + window.location.hash='totals'; + } + else { + $(window).trigger('hashchange'); + } });