Ticket #24011: 24011.11.diff
| File 24011.11.diff, 2.1 KB (added by , 13 years ago) |
|---|
-
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']; … … 134 134 // Animate the title going away or coming back 135 135 formatTo = -1 < $.inArray( format, noTitleFormats ); 136 136 formatFrom = -1 < $.inArray( postFormats.currentPostFormat, noTitleFormats ); 137 if ( formatFrom ? !formatTo :formatTo ) { // XOR138 $( '#titlewrap' ). fadeToggle(200 );137 if ( formatFrom && !formatTo ) { // XOR 138 $( '#titlewrap' ).animate( {opacity:1}, 200 ); 139 139 } 140 140 141 141 // Animate the fields moving going away or coming in … … 237 237 $(this).closest( 'p' ).find( 'span' ).toggle(); 238 238 }); 239 239 240 // Set opacity of title on focus 241 var noTitleFormatsSelector = '.wp-format-' + noTitleFormats.join( ' #title,.wp-format-' ) + ' #title'; 242 $( 'html' ).on( 'focusin', noTitleFormatsSelector, function(e) { 243 $( '#titlewrap' ).animate( {opacity:1}, 200 ); 244 }).on( 'focusout', noTitleFormatsSelector, 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(); -
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,