Ticket #29286: 29286.diff
File 29286.diff, 1.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/js/plugin-install.js
38 38 tb_position(); 39 39 }); 40 40 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; 43 45 46 tb_click.call( $('a.thickbox', this)[0] ); // use the URL of the first thickbox link in the card 47 44 48 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 45 49 $('#TB_ajaxWindowTitle').html( '<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).data( 'title' ) ); 46 50 $('#TB_iframeContent').attr( 'title', plugininstallL10n.plugin_information + ' ' + $(this).data( 'title' ) );