Make WordPress Core

Ticket #19189: 19189-2.patch

File 19189-2.patch, 1.2 KB (added by azaozz, 13 years ago)
  • wp-includes/js/thickbox/thickbox.js

     
    225225
    226226                                if(url.indexOf('TB_inline') != -1){
    227227                                        jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children());
    228                                         jQuery("#TB_window").unload(function () {
     228                                        jQuery("#TB_window").bind('tb_unload', function () {
    229229                                                jQuery('#' + params['inlineId']).append( jQuery("#TB_ajaxContent").children() ); // move elements back when you're finished
    230230                                        });
    231231                                        tb_position();
     
    275275function tb_remove() {
    276276        jQuery("#TB_imageOff").unbind("click");
    277277        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();});
    279279        jQuery("#TB_load").remove();
    280280        if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
    281281                jQuery("body","html").css({height: "auto", width: "auto"});