Ticket #43082: 43082.2.diff
| File 43082.2.diff, 1001 bytes (added by , 8 years ago) |
|---|
-
src/wp-admin/js/plugin-install.js
148 148 149 149 /* 150 150 * Open the Plugin details modal. The event is delegated to get also the links 151 * in the plugins search tab, after the AJAX search rebuilds the HTML. 151 * in the plugins search tab, after the AJAX search rebuilds the HTML. It's 152 * delegated on the closest ancestor and not on the body to avoid conflicts 153 * with other handlers, see Trac ticket #43082. 152 154 */ 153 $( ' body' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {155 $( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) { 154 156 // The `data-title` attribute is used only in the Plugin screens. 155 157 var title = $( this ).data( 'title' ) ? plugininstallL10n.plugin_information + ' ' + $( this ).data( 'title' ) : plugininstallL10n.plugin_modal_label; 156 158