Changeset 22320 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 10/28/2012 11:29:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r22044 r22320 1019 1019 $thumbnailId = $element.find('input[name="thumbnail_id"]'), 1020 1020 title = '<?php _e( "Choose a Featured Image" ); ?>', 1021 workflow, se tFeaturedImage;1021 workflow, selection, setFeaturedImage; 1022 1022 1023 1023 setFeaturedImage = function( thumbnailId ) { … … 1038 1038 }); 1039 1039 1040 workflow.selection.on( 'add', function( model ) { 1040 selection = workflow.state().get('selection'); 1041 1042 selection.on( 'add', function( model ) { 1041 1043 var sizes = model.get('sizes'), 1042 1044 size; … … 1052 1054 size = size || model.toJSON(); 1053 1055 1054 workflow. modal.close();1055 workflow.selection.clear();1056 workflow.close(); 1057 selection.clear(); 1056 1058 1057 1059 $( '<img />', { … … 1062 1064 } 1063 1065 1064 workflow. modal.open();1066 workflow.open(); 1065 1067 }); 1066 1068
Note: See TracChangeset
for help on using the changeset viewer.