WordPress.org

Make WordPress Core

Ticket #43082: 43082.diff

File 43082.diff, 831 bytes (added by afercia, 3 years ago)
  • src/wp-admin/js/plugin-install.js

     
    146146                }
    147147        }
    148148
    149         // Open the Plugin details modal.
    150         $( '.thickbox.open-plugin-details-modal' ).on( 'click', function( e ) {
     149        /*
     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.
     152         */
     153        $( 'body' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {
    151154                // The `data-title` attribute is used only in the Plugin screens.
    152155                var title = $( this ).data( 'title' ) ? plugininstallL10n.plugin_information + ' ' + $( this ).data( 'title' ) : plugininstallL10n.plugin_modal_label;
    153156