From e1d16e80804325aa730b1409d20a60bfa3c140ed Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 20 Nov 2014 15:36:20 +0000 Subject: [PATCH] Simplify selectors in [30374]. props wonderboymusic, adamsilverstein. see #29326. git-svn-id: https://develop.svn.wordpress.org/trunk@30461 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index cc0f987fb7..df03d13f36 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -3018,7 +3018,7 @@ this.content.set( view ); // Trigger the controller to set focus - view.controller.trigger( 'edit:selection', this ); + this.trigger( 'edit:selection', this ); }, editImageContent: function() { @@ -6266,7 +6266,7 @@ }, editSelection: function( modal ) { - modal.$el.find( '.media-button-backToLibrary' ).focus(); + modal.$( '.media-button-backToLibrary' ).focus(); }, /**