Make WordPress Core

Changeset 19451


Ignore:
Timestamp:
11/25/2011 05:33:31 PM (13 years ago)
Author:
azaozz
Message:

Revert [19264] to keep back-compat. Any improperly fired window.unload will have to be dealt with on a case by case basis.

File:
1 edited

Legend:

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

    r19264 r19451  
    276276    jQuery("#TB_imageOff").unbind("click");
    277277    jQuery("#TB_closeWindowButton").unbind("click");
    278     jQuery("#TB_window").fadeOut("fast",function(){ // see #19189
    279         jQuery(this).triggerHandler("unload");
    280         jQuery('#TB_window,#TB_overlay,#TB_HideSelect').unbind().remove();
    281     });
     278    jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
    282279    jQuery("#TB_load").remove();
    283280    if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
Note: See TracChangeset for help on using the changeset viewer.