Ticket #19189: 19189.triggerHandler.diff
File 19189.triggerHandler.diff, 840 bytes (added by , 14 years ago) |
---|
-
wp-includes/js/thickbox/thickbox.js
275 275 function tb_remove() { 276 276 jQuery("#TB_imageOff").unbind("click"); 277 277 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').each(function(){ jQuery(this).triggerHandler("unload"); }).unbind().remove();}); 279 279 jQuery("#TB_load").remove(); 280 280 if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 281 281 jQuery("body","html").css({height: "auto", width: "auto"});