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

git-svn-id: https://develop.svn.wordpress.org/trunk@24264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-05-15 20:43:09 +00:00
parent a5ab9e5dca
commit 22b2023e4b
5 changed files with 37 additions and 22 deletions
+6 -1
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(),