Ticket #24011: 24011.10.diff
File 24011.10.diff, 2.0 KB (added by , 8 years ago) |
---|
-
wp-admin/css/wp-admin.css
4116 4116 } 4117 4117 4118 4118 .wp-post-format-show-ui.wp-format-image .attachment-display-settings, 4119 .wp-post-format-show-ui.wp-format-status #titlewrap,4120 4119 .wp-post-format-show-ui.wp-format-image #insert-media-button, 4121 4120 .wp-post-format-show-ui.wp-format-audio #insert-media-button, 4122 4121 .wp-post-format-show-ui.wp-format-video #insert-media-button, -
wp-admin/js/post-formats.js
13 13 lastHeight = 360, 14 14 initialFormat = 'standard', 15 15 shortClass = 'short-format', 16 noTitleFormats = ['status' ],16 noTitleFormats = ['status', 'aside'], 17 17 noMediaFormats = ['status', 'aside', 'image', 'audio', 'video'], 18 18 shortContentFormats = ['status', 'aside'], 19 19 noUIFormats = ['standard', 'chat', 'status', 'aside', 'gallery']; … … 135 135 formatTo = -1 < $.inArray( format, noTitleFormats ); 136 136 formatFrom = -1 < $.inArray( postFormats.currentPostFormat, noTitleFormats ); 137 137 if ( formatFrom ? !formatTo : formatTo ) { // XOR 138 $( '#titlewrap' ).fadeToggle( 200 ); 138 var o = (formatTo)? .5:1; 139 $( '#titlewrap' ).animate( {opacity:o}, 200 ); 139 140 } 140 141 141 142 // Animate the fields moving going away or coming in … … 237 238 $(this).closest( 'p' ).find( 'span' ).toggle(); 238 239 }); 239 240 241 // Set opacity of title on focus 242 $( 'html' ).on( 'focusin', '.wp-format-aside #title,.wp-format-status #title', function(e) { 243 $( '#titlewrap' ).animate( {opacity:1}, 200 ); 244 }).on( 'focusout', '.wp-format-aside #title,.wp-format-status #title', function(e) { 245 $( '#titlewrap' ).animate( {opacity:.5}, 200 ); 246 }); 247 240 248 // Media selection 241 249 $( '.wp-format-media-select' ).click( function (e) { 242 250 e.preventDefault();