Ticket #24013: 24013.2.diff
File 24013.2.diff, 946 bytes (added by , 12 years ago) |
---|
-
wp-admin/js/post-formats.js
3 3 (function($) { 4 4 var container, mediaFrame, lastMimeType, mediaPreview, 5 5 noUIFormats = ['standard', 'chat', 'status', 'aside', 'gallery'], 6 noInsertMediaButtonFormats = ['aside', 'status'], 6 7 $container = $( '.post-formats-fields' ); 7 8 8 9 function switchFormatClass( format ) { … … 25 26 $('#post_format').val(format); 26 27 $('.post-format-change').show().find('span.icon').removeClass(postFormats.currentPostFormat).addClass(format); 27 28 29 if ( -1 < $.inArray( format, noInsertMediaButtonFormats ) ) { 30 $('#insert-media-button').hide(); 31 } else { 32 $('#insert-media-button').show(); 33 } 34 28 35 if ( -1 < $.inArray( format, noUIFormats ) ) { 29 36 switchFormatClass( format ); // No slide 30 37 $container.hide();