Ticket #18796: 18796.2.patch
| File 18796.2.patch, 2.3 KB (added by , 15 years ago) |
|---|
-
wp-includes/js/thickbox/thickbox.js
182 182 tb_position(); 183 183 jQuery("#TB_load").remove(); 184 184 jQuery("#TB_ImageOff").click(tb_remove); 185 jQuery("#TB_window").css({ display:"block"}); //for safari using css instead of show185 jQuery("#TB_window").css({'visibility':'visible'}); //for safari using css instead of show 186 186 }; 187 187 188 188 imgPreloader.src = url; … … 206 206 jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'>"+thickboxL10n.noiframes+"</iframe>"); 207 207 } 208 208 }else{// not an iframe, ajax 209 if(jQuery("#TB_window").css(" display") != "block"){209 if(jQuery("#TB_window").css("visibility") != "visible"){ 210 210 if(params['modal'] != "true"){//ajax no modal 211 211 jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img src='" + tb_closeImage + "' /></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); 212 212 }else{//ajax modal … … 230 230 }); 231 231 tb_position(); 232 232 jQuery("#TB_load").remove(); 233 jQuery("#TB_window").css({ display:"block"});233 jQuery("#TB_window").css({'visibility':'visible'}); 234 234 }else if(url.indexOf('TB_iframe') != -1){ 235 235 tb_position(); 236 236 if(jQuery.browser.safari){//safari needs help because it will not fire iframe onload 237 237 jQuery("#TB_load").remove(); 238 jQuery("#TB_window").css({ display:"block"});238 jQuery("#TB_window").css({'visibility':'visible'}); 239 239 } 240 240 }else{ 241 241 jQuery("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method 242 242 tb_position(); 243 243 jQuery("#TB_load").remove(); 244 244 tb_init("#TB_ajaxContent a.thickbox"); 245 jQuery("#TB_window").css({ display:"block"});245 jQuery("#TB_window").css({'visibility':'visible'}); 246 246 }); 247 247 } 248 248
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)