From: David Read Date: Thu, 14 Feb 2013 15:19:26 +0000 Subject: [162] Force browers to refresh JS and CSS with revamp. X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=61133f0414fb56083cfd85cb580ea201f7145801 --- [162] Force browers to refresh JS and CSS with revamp. --- --- a/ckanext/ga_report/public/css/ga_report.css +++ b/ckanext/ga_report/public/css/ga_report.css @@ -45,3 +45,7 @@ width: 200px; } +.ga-reports-table .td-numeric { + text-align: center; +} + --- a/ckanext/ga_report/public/scripts/ckanext_ga_reports.js +++ b/ckanext/ga_report/public/scripts/ckanext_ga_reports.js @@ -103,8 +103,8 @@ var handler = function(e) { var target = $(e.delegateTarget); var form = target.closest('form'); - form.attr('action', form.attr('action')+window.location.hash); - form.submit(); + var url = form.attr('action')+'?month='+target.val()+window.location.hash; + window.location = url; }; var selectors = $('select[name="month"]'); assert(selectors.length>0); --- a/ckanext/ga_report/templates/ga_report/ga_util.html +++ b/ckanext/ga_report/templates/ga_report/ga_util.html @@ -14,7 +14,7 @@ - +
@@ -24,7 +24,7 @@ - +
Name Source
${name} ${source}${count}${count}
@@ -45,15 +45,15 @@ - +
- + - +
Name% ${title}% ${title}
${name}${value}${value}
@@ -63,12 +63,13 @@
--- a/ckanext/ga_report/templates/ga_report/publisher/index.html +++ b/ckanext/ga_report/templates/ga_report/publisher/index.html @@ -24,9 +24,10 @@ - - + + + @@ -47,17 +48,17 @@
- +
- + - +
PublisherDataset ViewsDataset Views
${h.link_to(publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport', action='read_publisher', id=publisher.name) + (("?month=" + c.month) if c.month else ''))} ${views}${views}
--- a/ckanext/ga_report/templates/ga_report/publisher/read.html +++ b/ckanext/ga_report/templates/ga_report/publisher/read.html @@ -9,9 +9,10 @@ - - + + + @@ -61,7 +62,7 @@ - +
@@ -72,8 +73,8 @@ - - + +
Dataset Views ${h.link_to(package.title or package.name, h.url_for(controller='package', action='read', id=package.name))} ${views}${downloads}${views}${downloads}
--- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -9,8 +9,8 @@ - - + + @@ -71,16 +71,16 @@
- +
- + - +
NameValueValue History
${name}${value}${value} ${','.join([y for x,y in graph])}