Ticket #29286: 29286.6.diff
File 29286.6.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/list-tables.css
1241 1241 -webkit-box-sizing: border-box; 1242 1242 -moz-box-sizing: border-box; 1243 1243 box-sizing: border-box; 1244 cursor: pointer; 1244 1245 } 1245 1246 1246 1247 .plugin-card:nth-child(odd) { -
src/wp-admin/js/plugin-install.js
38 38 tb_position(); 39 39 }); 40 40 41 $( '.plugin-card, .plugins .column-description' ).on( 'click', 'a.thickbox', function() { 42 tb_click.call(this); 41 $( '.plugin-card, .plugins .column-description' ).on( 'click', function( e ) { 42 // Don't trigger thickbox if the user is currently selecting text within it 43 var s1 = window.getSelection, 44 s2 = document.getSelection, 45 s3 = document.selection, 46 s = ( s1 ? s1() : (s2) ? s2() : ( s3 ? s3() : null ) ); 43 47 48 if ( s && s.type === 'Range' ) { 49 return false; 50 } 51 52 // Don't trigger thickbox if a link that doesn't have the proper class to do so (EGs: link to dev site & install button). 53 if ( $( e.target ).is( 'a' ) && ! $( e.target ).is( 'a.thickbox' ) ) { 54 return true; 55 } 56 57 tb_click.call( $('a.thickbox', this)[0] ); // use the URL of the first thickbox link in the card 58 44 59 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 45 60 $('#TB_ajaxWindowTitle').html( '<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).data( 'title' ) ); 46 61 $('#TB_iframeContent').attr( 'title', plugininstallL10n.plugin_information + ' ' + $(this).data( 'title' ) );