Ticket #49112: 49112.diff
| File 49112.diff, 1018 bytes (added by , 6 years ago) |
|---|
-
src/js/_enqueues/admin/site-health.js
282 282 283 283 function updateDirSizes( data ) { 284 284 var copyButton = $( 'button.button.copy-button' ); 285 var clip doardText = copyButton.attr( 'data-clipboard-text' );285 var clipboardText = copyButton.attr( 'data-clipboard-text' ); 286 286 287 287 $.each( data, function( name, value ) { 288 288 var text = value.debug || value.size; 289 289 290 290 if ( typeof text !== 'undefined' ) { 291 clip doardText = clipdoardText.replace( name + ': loading...', name + ': ' + text );291 clipboardText = clipboardText.replace( name + ': loading...', name + ': ' + text ); 292 292 } 293 293 } ); 294 294 295 copyButton.attr( 'data-clipboard-text', clip doardText );295 copyButton.attr( 'data-clipboard-text', clipboardText ); 296 296 297 297 pathsSizesSection.find( 'td[class]' ).each( function( i, element ) { 298 298 var td = $( element );