Make WordPress Core

Changeset 19456


Ignore:
Timestamp:
11/26/2011 05:49:50 PM (13 years ago)
Author:
azaozz
Message:

Rename the problematic "unload" event in Thickbox to "tb_unload", making it a true custom event, fixes #19189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/thickbox/thickbox.js

    r19451 r19456  
    226226                if(url.indexOf('TB_inline') != -1){
    227227                    jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children());
    228                     jQuery("#TB_window").unload(function () {
     228                    jQuery("#TB_window").bind('tb_unload', function () {
    229229                        jQuery('#' + params['inlineId']).append( jQuery("#TB_ajaxContent").children() ); // move elements back when you're finished
    230230                    });
     
    276276    jQuery("#TB_imageOff").unbind("click");
    277277    jQuery("#TB_closeWindowButton").unbind("click");
    278     jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
     278    jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("tb_unload").unbind().remove();});
    279279    jQuery("#TB_load").remove();
    280280    if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
Note: See TracChangeset for help on using the changeset viewer.