WordPress.org

Make WordPress Core

Ticket #22975: 22975.thickbox.patch

File 22975.thickbox.patch, 992 bytes (added by ocean90, 14 months ago)
  • wp-includes/js/thickbox/thickbox.js

     
    2020 
    2121//add thickbox to href & area elements that have a class of .thickbox 
    2222function tb_init(domChunk){ 
    23         jQuery(domChunk).live('click', tb_click); 
     23        jQuery('body').on('click', domChunk, tb_click); 
    2424} 
    2525 
    2626function tb_click(){ 
  • wp-admin/js/plugin-install.js

     
    2727 
    2828        $(window).resize(function(){ tb_position(); }); 
    2929 
    30          $('#dashboard_plugins a.thickbox, .plugins a.thickbox').click( function() { 
     30        $('#dashboard_plugins, .plugins').on( 'click', 'a.thickbox', function() { 
    3131                tb_click.call(this); 
    3232 
    3333                $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});