Fix quick edit error message styling, props solarissmoke, fixes #16912, fixes #14317

Fix top margin in bulk edit posts

git-svn-id: http://svn.automattic.com/wordpress/trunk@18158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-06-06 01:14:26 +00:00
parent e811e73322
commit 31e257b3c9
5 changed files with 11 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -1985,8 +1985,7 @@ tr.inline-edit-row td {
width: 69%;
}
#wpbody-content .inline-edit-row-page .inline-edit-col-right,
#wpbody-content .bulk-edit-row-post .inline-edit-col-right {
#wpbody-content .inline-edit-row-page .inline-edit-col-right {
margin-top: 27px;
}
@ -2078,6 +2077,11 @@ tr.inline-edit-row td {
margin-right: 0.5em
}
.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input {
width: 6em;
}
/* Styling */
.inline-edit-row h4 {
text-transform: uppercase;

View File

@ -1005,6 +1005,7 @@ class WP_Posts_List_Table extends WP_List_Table {
} ?>
<input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
<input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
<span class="error" style="display:none"></span>
<br class="clear" />
</p>
</td></tr>

View File

@ -249,10 +249,10 @@ inlineEditPost = {
$(inlineEditPost.what+id).hide().fadeIn();
} else {
r = r.replace( /<.[^<>]*?>/g, '' );
$('#edit-'+id+' .inline-edit-save').append('<span class="error">'+r+'</span>');
$('#edit-'+id+' .inline-edit-save .error').html(r).show();
}
} else {
$('#edit-'+id+' .inline-edit-save').append('<span class="error">'+inlineEditL10n.error+'</span>');
$('#edit-'+id+' .inline-edit-save .error').html(inlineEditL10n.error).show();
}
}
, 'html');

File diff suppressed because one or more lines are too long