Changeset 46354
- Timestamp:
- 09/30/2019 04:33:39 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/image-edit.js
r43347 r46354 504 504 // If a response is returned, close the editor and show an error. 505 505 if ( ret.error ) { 506 $('#imgedit-response-' + postid).html('<div class="error" ><p>' + ret.error + '</p></div>');506 $('#imgedit-response-' + postid).html('<div class="error" role="alert"><p>' + ret.error + '</p></div>'); 507 507 imageEdit.close(postid); 508 508 return; … … 518 518 519 519 if ( ret.msg ) { 520 $('#imgedit-response-' + postid).html('<div class="updated" ><p>' + ret.msg + '</p></div>');520 $('#imgedit-response-' + postid).html('<div class="updated" role="alert"><p>' + ret.msg + '</p></div>'); 521 521 } 522 522 -
trunk/src/js/media/views/frame/select.js
r43309 r46354 63 63 */ 64 64 createStates: function() { 65 console.log("test"); 66 this.on( 'content:render:edit-image', this.editState, this ); 65 67 var options = this.options; 66 68 … … 77 79 title: options.title, 78 80 priority: 20 79 }) 81 }), 82 new wp.media.controller.EditImage( { model: this.options.editImage } ), 80 83 ]); 81 84 }, -
trunk/src/wp-admin/css/edit.css
r46344 r46354 654 654 .edit-form-section { 655 655 margin-bottom: 20px; 656 } 657 658 .wp_attachment_details .attachment-content-description { 659 margin-top: 0.5385em; 660 display: inline-block; 661 min-height: 1.6923em; 656 662 } 657 663 -
trunk/src/wp-admin/css/media.css
r46344 r46354 801 801 } 802 802 803 .attachment-details .setting + .description a:focus { 804 /* Only visible in Windows High Contrast mode */ 805 outline: 1px solid transparent; 806 } 807 803 808 .wp_attachment_details .attachment-alt-text-description { 804 809 margin-top: 5px; … … 1115 1120 } 1116 1121 1122 .imgedit-settings .imgedit-original-dimensions { 1123 display: inline-block; 1124 } 1125 1117 1126 .imgedit-settings .imgedit-scale input[type="text"], 1118 1127 .imgedit-settings .imgedit-crop-ratio input[type="text"], 1119 1128 .imgedit-settings .imgedit-crop-sel input[type="text"] { 1120 width: 50px;1129 width: 80px; 1121 1130 font-size: 14px; 1122 1131 padding: 5px 8px; … … 1129 1138 font-size: 13px; 1130 1139 color: #444; 1140 } 1141 1142 .imgedit-settings .imgedit-scale-button-wrapper { 1143 margin-top: 0.3077em; 1144 display: block; 1131 1145 } 1132 1146 -
trunk/src/wp-admin/includes/image-edit.php
r46326 r46354 39 39 if ( $msg ) { 40 40 if ( isset( $msg->error ) ) { 41 $note = "<div class='error' ><p>$msg->error</p></div>";41 $note = "<div class='error' tabindex='-1' role='alert'><p>$msg->error</p></div>"; 42 42 } elseif ( isset( $msg->msg ) ) { 43 $note = "<div class='updated' ><p>$msg->msg</p></div>";43 $note = "<div class='updated' tabindex='-1' role='alert'><p>$msg->msg</p></div>"; 44 44 } 45 45 } … … 63 63 /* translators: %s: Image width and height in pixels. */ 64 64 __( 'Original dimensions %s' ), 65 $meta['width'] . ' × ' . $meta['height']65 '<span class="imgedit-original-dimensions">' . $meta['width'] . ' × ' . $meta['height'] . '</span>' 66 66 ); 67 67 ?> … … 79 79 <input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> 80 80 <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span> 81 < input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" />81 <div class="imgedit-scale-button-wrapper"><input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /></div> 82 82 </div> 83 83 </fieldset> … … 236 236 237 237 <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> 238 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')"src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" />238 <img id="image-preview-<?php echo $post_id; ?>" src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" /> 239 239 </div> 240 240 -
trunk/src/wp-admin/includes/media.php
r46288 r46354 3208 3208 ?> 3209 3209 3210 <label for="attachment_content" ><strong><?php _e( 'Description' ); ?></strong>3210 <label for="attachment_content" class="attachment-content-description"><strong><?php _e( 'Description' ); ?></strong> 3211 3211 <?php 3212 3212 -
trunk/src/wp-includes/css/editor.css
r45931 r46354 1323 1323 /* .button-small is normally 11px, but a bit too small for these buttons. */ 1324 1324 font-size: 12px; 1325 height: 26px;1325 min-height: 26px; 1326 1326 line-height: 2; 1327 1327 }
Note: See TracChangeset
for help on using the changeset viewer.