Make WordPress Core

Ticket #44714: 44714.diff

File 44714.diff, 975 bytes (added by subrataemfluence, 7 years ago)

Proposed patch

  • common.js

    diff --git wp-admin/js/common.js b/common.js
    index d8748f5..fc566f1 100755
    old new $document.ready( function() { 
    11041104
    11051105        // Toggle update details on update-core.php.
    11061106        $body.on( 'click', '.js-update-details-toggle', function() {
    1107                 var $updateNotice = $( this ).closest( '.js-update-details' ),
     1107        var $updateNotice = $( this ).closest( '.js-update-details' ),
    11081108                        $progressDiv = $( '#' + $updateNotice.data( 'update-details' ) );
    11091109
    11101110                /*
    $document.ready( function() { 
    11191119                $progressDiv.toggle();
    11201120                // Toggle the Show Details button expanded state.
    11211121                $( this ).attr( 'aria-expanded', $progressDiv.is( ':visible' ) );
     1122
     1123        if( $progressDiv.is( ':visible' ) ) {
     1124            $( this ).val( 'Hide details' );
     1125            $( this ).html( 'Hide details' );
     1126        } else {
     1127            $( this ).val( 'Show details' );
     1128            $( this ).html( 'Show details' );
     1129        }
    11221130        });
    11231131});
    11241132