Bodged download button for reporting.

This commit is contained in:
Naomi 2018-10-24 16:15:51 +01:00
parent 8187f6b306
commit b62f2f34a9
3 changed files with 4 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -7,10 +7,9 @@ li.facet-item {
list-style-type: none; list-style-type: none;
} }
#opencase_reporting_buttons { .views-data-export-feed.csv-feed .feed-icon {
margin-bottom: 20px; background-image: url(/modules/contrib/opencase/modules/opencase_reporting/assets/download.png);
} width: 200px;
height: 27px;
#opencase_reporting_buttons #download-data{
float: right; float: right;
} }

View File

@ -1,5 +0,0 @@
jQuery('body').on('click','#opencase_reporting_buttons #download_data',function(){
var url = new URL(location.href);
url.searchParams.append('_format', 'csv');
location.href = url.toString();
});