Changeset 34743
- Timestamp:
- 10/01/2015 02:51:25 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/edit.css
r34670 r34743 25 25 26 26 #save-action .spinner, 27 #show-comments a, 27 #show-comments a { 28 float: left; 29 } 30 28 31 #show-comments .spinner { 29 float: left; 32 float: none; 33 margin-top: 0; 30 34 } 31 35 … … 248 252 float: none; 249 253 margin: 0; 250 padding: 0 7px 5px; 254 padding: 5px 7px 10px; 255 overflow: hidden; 251 256 } 252 257 -
trunk/src/wp-admin/css/list-tables.css
r34710 r34743 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 } … … 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; 173 } 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; 174 187 } 175 188 … … 434 447 435 448 #commentsdiv #edithead .inside input { 436 vertical-align: middle;437 449 width: 160px; 438 450 } -
trunk/src/wp-admin/includes/template-functions.php
r34605 r34743 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"> … … 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 </div>402 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 413 </div> 409 414 … … 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 … … 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> -
trunk/src/wp-admin/js/edit-comments.js
r34527 r34743 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 … … 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);
Note: See TracChangeset
for help on using the changeset viewer.