Changeset 29087
- Timestamp:
- 07/11/2014 05:43:26 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29086 r29087 231 231 232 232 addNewClickHandler: function() { 233 this.trigger( ' show:upload:attachment' );233 this.trigger( 'toggle:upload:attachment' ); 234 234 }, 235 235 -
trunk/src/wp-includes/js/media-views.js
r29082 r29087 5603 5603 }); 5604 5604 5605 this.listenTo( this.controller, 'show:upload:attachment', _.bind( this.showUploader, this ) ); 5605 this.listenTo( this.controller, 'toggle:upload:attachment', _.bind( this.toggleUploader, this ) ); 5606 5606 5607 this.createToolbar(); 5607 5608 this.createUploader(); … … 5745 5746 }, 5746 5747 5747 showUploader: function() { 5748 this.uploader.show(); 5748 toggleUploader: function() { 5749 if ( this.uploader.$el.hasClass( 'hidden' ) ) { 5750 this.uploader.show(); 5751 } else { 5752 this.uploader.hide(); 5753 } 5749 5754 }, 5750 5755
Note: See TracChangeset
for help on using the changeset viewer.