Changeset 24088
- Timestamp:
- 04/25/2013 05:58:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post-formats.js
r24087 r24088 94 94 95 95 // If gallery, force it to open to gallery state 96 if ( 'gallery' === format ) 97 insertMediaButton.addClass( 'gallery' ); 98 else 99 insertMediaButton.removeClass( 'gallery' ); 100 101 postFormats.currentPostFormat = format; 102 } 96 insertMediaButton.toggleClass( 'gallery', 'gallery' === format ); 97 98 postFormats.currentPostFormat = format; 99 } 103 100 104 101 105 102 106 103 $(function() { 107 insertMediaButton = $( '#insert-media-button' ) ;104 insertMediaButton = $( '#insert-media-button' ).toggleClass( 'gallery', 'gallery' === postFormats.currentPostFormat ); 108 105 $container = $( '.post-formats-fields' ); 109 106
Note: See TracChangeset
for help on using the changeset viewer.