Fixed: Blank Exporting Reports

Fix for #11236 adjusted the DOM to the new tree structure in html-report-by-date.php
This commit is contained in:
Jon Brim 2016-06-23 09:08:50 -07:00 committed by GitHub
parent 2cae613212
commit 1848f63254
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ jQuery(function( $ ) {
if ( 'table' === export_format ) {
$( this ).closest( 'div' ).find( 'thead tr,tbody tr' ).each( function() {
$( this ).offsetParent().find( 'thead tr,tbody tr' ).each( function() {
$( this ).find( 'th, td' ).each( function() {
var value = $( this ).text();
value = value.replace( '[?]', '' );
@ -152,7 +152,7 @@ jQuery(function( $ ) {
csv_data += '\n';
});
$( this ).closest( 'div' ).find( 'tfoot tr' ).each( function() {
$( this ).offsetParent().find( 'tfoot tr' ).each( function() {
$( this ).find( 'th, td' ).each( function() {
var value = $( this ).text();
value = value.replace( '[?]', '' );