Ticket #19189: 19189-2.patch
File 19189-2.patch, 1.2 KB (added by , 13 years ago) |
---|
-
wp-includes/js/thickbox/thickbox.js
225 225 226 226 if(url.indexOf('TB_inline') != -1){ 227 227 jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children()); 228 jQuery("#TB_window"). unload(function () {228 jQuery("#TB_window").bind('tb_unload', function () { 229 229 jQuery('#' + params['inlineId']).append( jQuery("#TB_ajaxContent").children() ); // move elements back when you're finished 230 230 }); 231 231 tb_position(); … … 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').trigger("tb_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"});