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

git-svn-id: https://develop.svn.wordpress.org/trunk@19451 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-11-25 17:33:31 +00:00
parent 36fa9fddd6
commit 6f06a70ecc

View File

@ -275,10 +275,7 @@ function tb_showIframe(){
function tb_remove() {
jQuery("#TB_imageOff").unbind("click");
jQuery("#TB_closeWindowButton").unbind("click");
jQuery("#TB_window").fadeOut("fast",function(){ // see #19189
jQuery(this).triggerHandler("unload");
jQuery('#TB_window,#TB_overlay,#TB_HideSelect').unbind().remove();
});
jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
jQuery("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
jQuery("body","html").css({height: "auto", width: "auto"});