Skip to content

Commit

Permalink
Debug. See #122.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jun 4, 2018
1 parent b750cac commit 4e8b76c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/containers/UploaderContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const mapDispatchToProps = (dispatch, ownProps) => {
// Not sure why WP doesn't do this automatically - something to do with model.id === 'insert'.
var frameSelection = frame.views.get('.media-frame-content')[0].options.selection
if ( undefined !== frameSelection ) {
alert( 'located frameSelection' );
frameSelection.on( 'selection:single', function( it ) {
alert( 'adding visible class' );
frame.views.get('.media-frame-content')[0].sidebar.$el.addClass( 'visible' );
});
}
Expand Down

0 comments on commit 4e8b76c

Please sign in to comment.