Ticket #33757: 33757.3.patch
File 33757.3.patch, 5.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/edit.css
24 24 } 25 25 26 26 #save-action .spinner, 27 #show-comments a, 28 #show-comments .spinner { 27 #show-comments a { 29 28 float: left; 30 29 } 31 30 31 #show-comments .spinner { 32 float: none; 33 margin-top: 0; 34 } 35 32 36 #lost-connection-notice .spinner { 33 37 visibility: visible; 34 38 float: left; … … 246 250 #normal-sortables .postbox #replyrow .submit { 247 251 float: none; 248 252 margin: 0; 249 padding: 0 7px 5px; 253 padding: 5px 7px 10px; 254 overflow: hidden; 250 255 } 251 256 252 257 #side-sortables .submitbox .submit input, -
src/wp-admin/css/list-tables.css
152 152 153 153 #replysubmit { 154 154 margin: 0; 155 padding: 0 5px 3px; 155 padding: 5px 7px 10px; 156 overflow: hidden; 156 157 text-align: center; 157 158 } 158 159 … … 166 167 text-align: center; 167 168 } 168 169 169 #replyrow h5 { 170 margin: .2em 0 0; 171 padding: 0 5px; 172 line-height: 1.4em; 173 font-size: 1em; 170 #replyrow.inline-edit-row fieldset.comment-reply { 171 font-size: inherit; 172 line-height: inherit; 174 173 } 175 174 175 #replyrow legend { 176 margin: 0; 177 padding: .2em 5px 0; 178 font-size: 13px; 179 line-height: 1.4; 180 font-weight: 600; 181 } 182 183 #replyrow.inline-edit-row label { 184 display: inline; 185 vertical-align: baseline; 186 line-height: inherit; 187 } 188 176 189 #edithead .inside, 177 190 #commentsdiv #edithead .inside { 178 191 float: left; … … 433 446 } 434 447 435 448 #commentsdiv #edithead .inside input { 436 vertical-align: middle;437 449 width: 160px; 438 450 } 439 451 -
src/wp-admin/includes/template-functions.php
380 380 <?php else : ?> 381 381 <div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;"> 382 382 <?php endif; ?> 383 <div id="replyhead" style="display:none;"><h5><?php _e( 'Reply to Comment' ); ?></h5></div> 384 <div id="addhead" style="display:none;"><h5><?php _e('Add new Comment'); ?></h5></div> 383 <fieldset class="comment-reply"> 384 <legend> 385 <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span> 386 <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span> 387 <span class="hidden" id="addhead"><?php _e( 'Add new Comment' ); ?></span> 388 </legend> 389 390 <div id="replycontainer"> 391 <label for="replycontent" class="screen-reader-text"><?php _e( 'Comment' ); ?></label> 392 <?php 393 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); 394 wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 395 ?> 396 </div> 397 385 398 <div id="edithead" style="display:none;"> 386 399 <div class="inside"> 387 400 <label for="author-name"><?php _e( 'Name' ) ?></label> … … 397 410 <label for="author-url"><?php _e('URL') ?></label> 398 411 <input type="text" id="author-url" name="newcomment_author_url" class="code" size="103" value="" /> 399 412 </div> 400 <div style="clear:both;"></div>401 413 </div> 402 414 403 <div id="replycontainer">404 <?php405 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );406 wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );407 ?>408 </div>409 410 415 <p id="replysubmit" class="submit"> 411 416 <a href="#comments-form" class="save button-primary alignright"> 412 417 <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span> … … 415 420 <a href="#comments-form" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a> 416 421 <span class="waiting spinner"></span> 417 422 <span class="error" style="display:none;"></span> 418 <br class="clear" />419 423 </p> 420 424 421 425 <input type="hidden" name="action" id="action" value="" /> … … 430 434 if ( current_user_can( 'unfiltered_html' ) ) 431 435 wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false ); 432 436 ?> 437 </fieldset> 433 438 <?php if ( $table_row ) : ?> 434 439 </td></tr></tbody></table> 435 440 <?php else : ?> -
src/wp-admin/js/edit-comments.js
676 676 $('#author-url', editRow).val( $('div.author-url', rowData).text() ); 677 677 $('#status', editRow).val( $('div.comment_status', rowData).text() ); 678 678 $('#replycontent', editRow).val( $('textarea.comment', rowData).val() ); 679 $( '#edithead, #savebtn', editRow).show();679 $( '#edithead, #editlegend, #savebtn', editRow ).show(); 680 680 $('#replyhead, #replybtn, #addhead, #addbtn', editRow).hide(); 681 681 682 682 if ( h > 120 ) { … … 691 691 }); 692 692 } else if ( action == 'add' ) { 693 693 $('#addhead, #addbtn', editRow).show(); 694 $( '#replyhead, #replybtn, #edithead, #savebtn', editRow).hide();694 $( '#replyhead, #replybtn, #edithead, #editlegend, #savebtn', editRow ) .hide(); 695 695 $('#the-comment-list').prepend(editRow); 696 696 $('#replyrow').fadeIn(300); 697 697 } else { 698 698 replyButton = $('#replybtn', editRow); 699 $( '#edithead, #savebtn, #addhead, #addbtn', editRow).hide();699 $( '#edithead, #editlegend, #savebtn, #addhead, #addbtn', editRow ).hide(); 700 700 $('#replyhead, #replybtn', editRow).show(); 701 701 c.after(editRow); 702 702