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: http://svn.automattic.com/wordpress/trunk@19451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
572dcb6205
commit
b41176ce79
|
@ -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"});
|
||||
|
|
Loading…
Reference in New Issue