adding system status report copy text area

This commit is contained in:
Patrick Rauland 2013-10-08 01:02:33 +02:00
parent f70ac9ce5a
commit 99fb5315eb
1 changed files with 2 additions and 3 deletions

View File

@ -2,9 +2,9 @@
<div class="squeezer">
<h4><?php _e( 'Please include this information when requesting support:', 'woocommerce' ); ?> </h4>
<p class="submit"><a href="#" class="button-primary debug-report"><?php _e( 'Copy the System Report', 'woocommerce' ); ?></a></p>
<p class="submit"><a href="#" download="wc_report.txt" class="button-primary debug-report"><?php _e( 'Download System Report File', 'woocommerce' ); ?></a></p>
</div>
</div>
<textarea id="debug-report" readonly="readonly"></textarea>
<br/>
<table class="wc_status_table widefat" cellspacing="0">
@ -541,8 +541,7 @@
} );
try {
var blob = new Blob( [ report ], { type: "text/plain;charset=" + document.characterSet } );
saveAs( blob, jQuery(this).attr('download') );
jQuery("#debug-report").val( report ).show().focus().select();
return false;
} catch(e){ console.log( e ); }