Changeset 23850
- Timestamp:
- 03/29/2013 06:33:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post-formats.js
r23847 r23850 46 46 }); 47 47 48 49 50 51 52 53 48 // Media selection 49 $('.wp-format-media-select').click(function (event) { 50 event.preventDefault(); 51 var $el = $(this), $holder, $field, mime = 'image', menu = '', 52 $holder = $el.closest('.wp-format-media-holder'), 53 $field = $( '#wp_format_' + $holder.data('format') ); 54 54 55 56 57 58 59 60 61 55 switch ( $holder.data('format') ) { 56 case 'audio': 57 mime = 'audio'; 58 break; 59 case 'video': 60 mime = 'video'; 61 break; 62 62 } 63 63 … … 124 124 $holder.removeClass('empty').show(); 125 125 } 126 126 }); 127 127 128 129 128 mediaFrame.open(); 129 }); 130 130 })(jQuery);
Note: See TracChangeset
for help on using the changeset viewer.