=================================================
|
|
|
212 | 212 | }else{// not an iframe, ajax |
213 | 213 | if(jQuery("#TB_window").css("visibility") != "visible"){ |
214 | 214 | if(params['modal'] != "true"){//ajax no modal |
215 | | jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); |
| 215 | jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div></div><div id='TB_ajaxContent'></div>"); |
216 | 216 | }else{//ajax modal |
217 | 217 | jQuery("#TB_overlay").unbind(); |
218 | | jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); |
| 218 | jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal'></div>"); |
219 | 219 | } |
220 | 220 | }else{//this means the window is already up, we are just loading new content via ajax |
221 | | jQuery("#TB_ajaxContent")[0].style.width = ajaxContentW +"px"; |
222 | | jQuery("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; |
223 | 221 | jQuery("#TB_ajaxContent")[0].scrollTop = 0; |
224 | 222 | jQuery("#TB_ajaxWindowTitle").html(caption); |
225 | 223 | } |