Make WordPress Core

Ticket #29286: 29286.2.diff

File 29286.2.diff, 1.4 KB (added by stephdau, 11 years ago)

Same as 29286.diff, but also changes the mouse cursor to the pointer one when over a card.

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

     
    3838                tb_position();
    3939        });
    4040
    41         $('.plugin-card').on( 'click', 'a.thickbox', function() {
    42                 tb_click.call(this);
     41        $('.plugin-card').on( 'click', function( e ) {
     42                // Don't trigger thickbox if a link that doesn't have the proper class to do so (EGs: link to dev site & install button).
     43                if ( $( e.target ).is( 'a' ) && ! $( e.target ).is( 'a.thickbox' ) )
     44                        return true;
    4345
     46                tb_click.call( $('a.thickbox', this)[0] ); // use the URL of the first thickbox link in the card
     47
    4448                $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
    4549                $('#TB_ajaxWindowTitle').html( '<strong>' + plugininstallL10n.plugin_information + '</strong>&nbsp;' + $(this).data( 'title' ) );
    4650                $('#TB_iframeContent').attr( 'title', plugininstallL10n.plugin_information + ' ' + $(this).data( 'title' ) );
  • src/wp-admin/css/list-tables.css

     
    12411241        -webkit-box-sizing: border-box;
    12421242        -moz-box-sizing: border-box;
    12431243        box-sizing: border-box;
     1244        cursor: pointer;
    12441245}
    12451246
    12461247.plugin-card:nth-child(odd) {