From: Tom Rees Date: Thu, 24 Jan 2013 18:44:25 +0000 Subject: #167 Fixing for /dataset and /publishers X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=78c6e5902e57571e97b795027bb194693ae22acc --- #167 Fixing for /dataset and /publishers --- --- a/ckanext/ga_report/templates/ga_report/publisher/index.html +++ b/ckanext/ga_report/templates/ga_report/publisher/index.html @@ -13,6 +13,11 @@

Download as CSV

+ +
  • +

    Graph Legend

    +
    +
  • --- a/ckanext/ga_report/templates/ga_report/publisher/read.html +++ b/ckanext/ga_report/templates/ga_report/publisher/read.html @@ -23,6 +23,11 @@

    Download as CSV

    + +
  • +

    Graph Legend

    +
    +
  • --- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -142,7 +142,12 @@ $(function() { CKAN.GA_Reports.bind_sparklines(); CKAN.GA_Reports.bind_sidebar(); - $(window).trigger('hashchange'); + if (!window.location.hash) { + window.location.hash='totals'; + } + else { + $(window).trigger('hashchange'); + } });