From e9773982afba92965871d7f0b7fca6522367c2da Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 10 Nov 2008 08:58:32 +0000 Subject: [PATCH] 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 --- wp-admin/css/colors-fresh.css | 2 +- wp-admin/css/ie.css | 36 ++++++++++++++++++++++++++++++--- wp-admin/js/inline-edit-post.js | 7 ++++++- wp-admin/wp-admin.css | 4 +++- 4 files changed, 43 insertions(+), 6 deletions(-) diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 2f8861bd59..e86c0190a9 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -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; diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css index ca60d1a33f..eaa9fe5fdf 100644 --- a/wp-admin/css/ie.css +++ b/wp-admin/css/ie.css @@ -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%; } diff --git a/wp-admin/js/inline-edit-post.js b/wp-admin/js/inline-edit-post.js index 51baef867d..17e99608e1 100644 --- a/wp-admin/js/inline-edit-post.js +++ b/wp-admin/js/inline-edit-post.js @@ -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); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index b76e8e7b0c..332ca39eb8 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -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;