Changeset 22267
- Timestamp:
- 10/22/2012 05:40:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22247 r22267 673 673 674 674 maybeInitUploader: function() { 675 var workspace = this; 675 var workspace = this, 676 params = {}, 677 $id; 676 678 677 679 // If the uploader already exists or the body isn't in the DOM, bail. … … 679 681 return; 680 682 683 $id = $('#post_ID'); 684 if ( $id.length ) 685 params.post_id = $id.val(); 686 681 687 this.uploader = new wp.Uploader( _.extend({ 682 688 container: this.$el, 683 689 dropzone: this.$el, 684 browser: this.$('.upload-attachments a') 690 browser: this.$('.upload-attachments a'), 691 params: params 685 692 }, this.options.uploader ) ); 686 693 },
Note: See TracChangeset
for help on using the changeset viewer.