WordPress.org

Make WordPress Core

Ticket #6883: 6883.patch

File 6883.patch, 1.4 KB (added by hakre, 8 years ago)
  • wp-includes/js/thickbox/thickbox.js

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    284284        return false;
    285285}
    286286
     287function tb_overlay_bind() {
     288        jQuery("#TB_overlay").click(tb_remove);
     289}
     290
     291function tb_overlay_unbind() { 
     292        jQuery("#TB_overlay").unbind("click",tb_remove);
     293}
     294
    287295function tb_position() {
    288296var isIE6 = typeof document.body.style.maxHeight === "undefined";
    289297jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
  • wp-includes/js/swfupload/handlers.dev.js

     
    2424}
    2525
    2626function uploadStart(fileObj) {
     27        (window.dialogArguments || opener || parent || top).tb_overlay_unbind();       
    2728        return true;
    2829}
    2930
     
    4243        // Move the progress bar to 100%
    4344        jQuery('.bar', item).remove();
    4445        jQuery('.progress', item).hide();
     46        (window.dialogArguments || opener || parent || top).tb_overlay_bind();
    4547
    4648        // Old style: Append the HTML returned by the server -- thumbnail and form inputs
    4749        if ( isNaN(serverData) || !serverData ) {