Comments: Fix inline edit/reply on small screens.

Merges [34094] to the 4.3 branch.

props ocean90, SergeyBiryukov.
see #33596.

Built from https://develop.svn.wordpress.org/branches/4.3@34095


git-svn-id: http://core.svn.wordpress.org/branches/4.3@34063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-09-13 12:54:23 +00:00
parent bff564ee35
commit bf8ffcc14e
7 changed files with 42 additions and 6 deletions

View File

@ -1820,7 +1820,8 @@ div.action-links,
text-align: right;
}
#comments-form .fixed .column-author {
#comments-form .fixed .column-author,
#commentsdiv .fixed .column-author {
display: none !important;
}
@ -1974,6 +1975,22 @@ div.action-links,
margin: 0 0 0 6px;
}
#edithead .inside,
#commentsdiv #edithead .inside {
float: none;
text-align: right;
padding: 3px 5px;
}
#commentsdiv #edithead .inside input,
#edithead .inside input {
width: 100%;
}
#edithead label {
display: block;
}
#bulk-titles div {
margin: 0.8em 0.3em;
}

View File

@ -1820,7 +1820,8 @@ div.action-links,
text-align: left;
}
#comments-form .fixed .column-author {
#comments-form .fixed .column-author,
#commentsdiv .fixed .column-author {
display: none !important;
}
@ -1974,6 +1975,22 @@ div.action-links,
margin: 0 6px 0 0;
}
#edithead .inside,
#commentsdiv #edithead .inside {
float: none;
text-align: left;
padding: 3px 5px;
}
#commentsdiv #edithead .inside input,
#edithead .inside input {
width: 100%;
}
#edithead label {
display: block;
}
#bulk-titles div {
margin: 0.8em 0.3em;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -478,7 +478,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
?>
<form method="get">
<?php if ( $table_row ) : ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" class="inline-edit-row" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
<?php else : ?>
<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
<?php endif; ?>

View File

@ -373,6 +373,8 @@ commentReply = {
act = 'edit' == action ? 'edit' : 'replyto';
act = t.act = act + '-comment';
$( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', c ).length );
$('#action', editRow).val(act);
$('#comment_post_ID', editRow).val(post_id);
$('#comment_ID', editRow).val(comment_id);

File diff suppressed because one or more lines are too long