Fixed the jQuery on the download data button
The click binding was getting lost after ajax reload
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
jQuery('#opencase_reporting_buttons #download_data').click(function() {
|
||||
location.href = location.href + "&_format=csv";
|
||||
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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user