WordPress.org

Make WordPress Core

Changeset 42456


Ignore:
Timestamp:
01/15/2018 11:06:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Fix the plugin details modal in the install plugin search tab after [41356].

Props afercia.
Merges [42443] to the 4.9 branch.
Fixes #43082.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/js/plugin-install.js

    r41356 r42456  
    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;
Note: See TracChangeset for help on using the changeset viewer.