diff --git wp-admin/js/common.js b/common.js
index d8748f5..fc566f1 100755
old
|
new
|
$document.ready( function() { |
1104 | 1104 | |
1105 | 1105 | // Toggle update details on update-core.php. |
1106 | 1106 | $body.on( 'click', '.js-update-details-toggle', function() { |
1107 | | var $updateNotice = $( this ).closest( '.js-update-details' ), |
| 1107 | var $updateNotice = $( this ).closest( '.js-update-details' ), |
1108 | 1108 | $progressDiv = $( '#' + $updateNotice.data( 'update-details' ) ); |
1109 | 1109 | |
1110 | 1110 | /* |
… |
… |
$document.ready( function() { |
1119 | 1119 | $progressDiv.toggle(); |
1120 | 1120 | // Toggle the Show Details button expanded state. |
1121 | 1121 | $( 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 | } |
1122 | 1130 | }); |
1123 | 1131 | }); |
1124 | 1132 | |