1 | @@ -212,14 +212,12 @@ |
---|
2 | }else{// not an iframe, ajax |
---|
3 | if(jQuery("#TB_window").css("visibility") != "visible"){ |
---|
4 | if(params['modal'] != "true"){//ajax no modal |
---|
5 | - jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><div class='tb-close-icon'></div></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); |
---|
6 | + jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><div class='tb-close-icon'></div></a></div></div><div id='TB_ajaxContent'></div>"); |
---|
7 | }else{//ajax modal |
---|
8 | jQuery("#TB_overlay").unbind(); |
---|
9 | - jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); |
---|
10 | + jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal'></div>"); |
---|
11 | } |
---|
12 | }else{//this means the window is already up, we are just loading new content via ajax |
---|
13 | - jQuery("#TB_ajaxContent")[0].style.width = ajaxContentW +"px"; |
---|
14 | - jQuery("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; |
---|
15 | jQuery("#TB_ajaxContent")[0].scrollTop = 0; |
---|
16 | jQuery("#TB_ajaxWindowTitle").html(caption); |
---|
17 | } |
---|