Do not show comments column after quick editing a post from the Drafts screen, fixes #8113

git-svn-id: https://develop.svn.wordpress.org/trunk@9585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-10 08:58:32 +00:00
parent a2d6487881
commit e9773982af
4 changed files with 43 additions and 6 deletions

View File

@ -944,7 +944,7 @@ abbr.required,
background: #FFFFFF url(../images/menu-bits.gif) no-repeat scroll 0 -310px;
}
#adminmenu .wp-has-current-submenu .wp-has-submenu,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu .menu-top .current {
background-color: #c0c0c0;
background-image: none;

View File

@ -63,19 +63,49 @@ input.button-highlighted {
padding: 0;
}
ul#adminmenu li.wp-has-submenu {
#wpcontent #adminmenu.folded li.menu-top {
display: block;
}
* html #wpcontent #adminmenu li.menu-top {
display: inline;
padding: 0;
margin: 0;
}
#adminmenu li.menu-top a.menu-top {
min-width: auto;
width: auto;
}
#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu {
font-style: normal;
}
* html #wpcontent #adminmenu .wp-menu-open .wp-menu-toggle {
background: none;
}
* html #wpcontent #adminmenu .wp-has-submenu .wp-menu-toggle {
background: url(../images/menu-bits.gif) no-repeat scroll left -108px;
}
* html #wpcontent #adminmenu li.wp-has-current-submenu .wp-menu-toggle {
background: url(../images/menu-bits.gif) no-repeat scroll left -206px;
}
* html #adminmenu div.wp-menu-image {
height: 31px;
}
#wpcontent #adminmenu .wp-submenu li {
padding: 0;
}
#adminmenu,
#adminmenu .wp-menu-toggle,
.wp-submenu,
.wp-submenu li,
.wp-submenu {
.wp-menu-toggle {
zoom: 100%;
}

View File

@ -207,8 +207,13 @@ inlineEditPost = {
if (r) {
r = r.replace(/hide-if-no-js/, '');
$('#edit-'+id).remove();
row.html($(r).html()).show()
row.html($(r).html());
if ( 'draft' == $('input[name="post_status"]').val() )
row.find('td.column-comments').hide();
row.show()
.animate( { backgroundColor: '#CCEEBB' }, 500)
.animate( { backgroundColor: '#eefee7' }, 500);
inlineEditPost.addEvents(row);

View File

@ -883,7 +883,7 @@ ul#adminmenu li.write-new-button a {
padding: 0;
width: 12em;
list-style: none;
font: normal 11.5px/16px Georgia, "Times New Roman", Times, serif;
font: normal 11.5px/18px Georgia, "Times New Roman", Times, serif;
}
#adminmenu.folded,
@ -945,6 +945,7 @@ ul#adminmenu li.write-new-button a {
#adminmenu a.menu-top {
line-height: 18px;
min-width: 10em;
padding: 6px 5px;
border-width: 1px 1px 0;
border-style: solid solid none;
@ -1081,6 +1082,7 @@ ul#adminmenu li.write-new-button a {
#adminmenu .wp-menu-toggle {
width: 22px;
clear: right;
float: right;
margin: 1px 0 0;
height: 29px;