Fix showing and hiding of UI elements when disabling the Post Formats UI, props kovshenin, see #24327

git-svn-id: http://core.svn.wordpress.org/trunk@24264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2013-05-15 20:43:09 +00:00
parent cf47737813
commit 7255abb66c
5 changed files with 37 additions and 22 deletions

View File

@@ -210,7 +210,12 @@ window.wp = window.wp || {};
}
$( '#show_post_format_ui' ).on( 'change', function () {
$( '.wp-post-format-ui' ).toggleClass( 'no-ui', ! this.checked );
body.toggleClass( 'wp-post-format-show-ui', this.checked );
// Reset the display properties of possibly hidden items.
insertMediaButton.css( 'display', '' );
$( '#titlewrap' ).css( 'display', '' );
$.post( ajaxurl, {
action: 'show-post-format-ui',
post_type: $( '#post_type' ).val(),