CHANGED: Removed CSS hacks for IE6. Replaced CSS Expression with JavaScript.
This commit is contained in:
1 parent
c15e155121
commit
4aa17642ac
5 files changed
+29
-33
No files matched your search
@@ -280,6 +280,7 @@ You can localize the plugin with [Poedit](http://www.poedit.net/) and "languages
|
||||
* NEW: Auto Resize feature works even when resizing browser window
|
||||
* NEW: "General - Mobile Support" options that has "No Window Margin"/"No ThickBox" option and "Width"/"Height" option
|
||||
* NEW: "View - Margin - Window" option
|
||||
* CHANGED: Removed CSS hacks for IE6. Replaced CSS Expression with JavaScript.
|
||||
* FIXED: Gallery images cannot be displayed in gallery style with [Cleaner Gallery](http://wordpress.org/extend/plugins/cleaner-gallery/)
|
||||
|
||||
= 1.8 =
|
||||
|
||||
@@ -39,11 +39,6 @@
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
* html #TB_overlay { /* ie6 hack */
|
||||
position: absolute;
|
||||
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||
}
|
||||
|
||||
#TB_window {
|
||||
position: fixed;
|
||||
background: #ffffff;
|
||||
@@ -60,11 +55,6 @@
|
||||
box-shadow: rgba(0,0,0,1) 0 4px 30px;
|
||||
}
|
||||
|
||||
* html #TB_window { /* ie6 hack */
|
||||
position: absolute;
|
||||
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
|
||||
}
|
||||
|
||||
#TB_window img#TB_Image {
|
||||
display:block;
|
||||
margin: 15px;
|
||||
@@ -168,11 +158,6 @@
|
||||
padding: 40px 15px 15px;
|
||||
}
|
||||
|
||||
* html #TB_load { /* ie6 hack */
|
||||
position: absolute;
|
||||
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
|
||||
}
|
||||
|
||||
#TB_HideSelect{
|
||||
z-index:10099;
|
||||
position:fixed;
|
||||
@@ -187,11 +172,6 @@
|
||||
width:100%;
|
||||
}
|
||||
|
||||
* html #TB_HideSelect { /* ie6 hack */
|
||||
position: absolute;
|
||||
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||
}
|
||||
|
||||
#TB_iframeContent{
|
||||
clear:both;
|
||||
border:none;
|
||||
|
||||
+19
-2
@@ -114,6 +114,10 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
|
||||
jQuery("html").css("overflow","hidden");
|
||||
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
|
||||
jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
|
||||
jQuery("#TB_overlay, #TB_HideSelect").css({
|
||||
position: 'absolute',
|
||||
height: (document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight) + 'px'
|
||||
});
|
||||
if (tb_options.click_bg == "close")
|
||||
jQuery("#TB_overlay").click(tb_remove);
|
||||
}
|
||||
@@ -132,6 +136,12 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
|
||||
}
|
||||
|
||||
jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
|
||||
if (typeof document.body.style.maxHeight == "undefined") {
|
||||
jQuery("#TB_load").css({
|
||||
position: 'absolute',
|
||||
marginTop: (-parseInt(jQuery("#TB_load")[0].offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop)) + 'px'
|
||||
});
|
||||
}
|
||||
if (parseInt(jQuery('#TB_load').css('marginLeft')) == 0)
|
||||
jQuery('#TB_load').css('marginLeft', -jQuery('#TB_load').outerWidth() / 2);
|
||||
if (parseInt(jQuery('#TB_load').css('marginTop')) == 0)
|
||||
@@ -611,13 +621,13 @@ function tb_open() {
|
||||
switch (effect_type) {
|
||||
case "zoom":
|
||||
jQuery("#TB_window").height(jQuery("#TB_window").height()); // for image
|
||||
if (typeof document.body.style.maxHeight == "undefined")
|
||||
if (typeof document.body.style.maxHeight == "undefined" && jQuery("body").css("position") != "relative")
|
||||
jQuery("#TB_window").css({marginTop: -jQuery("#TB_window").height() / 2, top: jQuery(window).height() / 2 + jQuery(document).scrollTop()});
|
||||
jQuery("#TB_Image").hide().show(tb_options.effect_speed);
|
||||
jQuery("#TB_window").show(tb_options.effect_speed, callback);
|
||||
break;
|
||||
case "slide":
|
||||
if (typeof document.body.style.maxHeight == "undefined")
|
||||
if (typeof document.body.style.maxHeight == "undefined" && jQuery("body").css("position") != "relative")
|
||||
jQuery("#TB_window").css({marginTop: -jQuery("#TB_window").height() / 2, top: jQuery(window).height() / 2 + jQuery(document).scrollTop()});
|
||||
jQuery("#TB_window").slideDown(tb_options.effect_speed, callback);
|
||||
break;
|
||||
@@ -633,6 +643,13 @@ function tb_open() {
|
||||
jQuery("#TB_window").css("display", "block");
|
||||
|
||||
jQuery("#TB_title").height(Math.max(jQuery("#TB_title").height(), jQuery("#TB_ajaxWindowTitle").height() + 13)); // TODO: workaround code for the height of multiline title (to be modified)
|
||||
|
||||
if (typeof document.body.style.maxHeight == "undefined") {
|
||||
jQuery("#TB_window").css({
|
||||
position: 'absolute',
|
||||
marginTop: (-parseInt(jQuery("#TB_window")[0].offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop)) + 'px'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function tb_roundCorner(source) {
|
||||
|
||||
Vendored
-4
@@ -8,9 +8,7 @@
|
||||
#TB_overlay{position:fixed;z-index:10100;top:0px;left:0px;height:100%;width:100%;}
|
||||
.TB_overlayMacFFBGHack{background:url(images/macFFBgHack.png) repeat;}
|
||||
.TB_overlayBG{background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";filter:alpha(opacity=75);-moz-opacity:0.75;opacity:0.75;}
|
||||
* html #TB_overlay{position:absolute;height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight:document.body.offsetHeight + 'px');}
|
||||
#TB_window{position:fixed;background:#ffffff;z-index:10102 !important;color:#000000;display:none;text-align:left;top:50%;left:50%;border:1px solid #555;-moz-box-shadow:rgba(0,0,0,1) 0 4px 30px;-webkit-box-shadow:rgba(0,0,0,1) 0 4px 30px;-khtml-box-shadow:rgba(0,0,0,1) 0 4px 30px;box-shadow:rgba(0,0,0,1) 0 4px 30px;}
|
||||
* html #TB_window{position:absolute;margin-top:expression(0 - parseInt(this.offsetHeight/2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');}
|
||||
#TB_window img#TB_Image{display:block;margin:15px;border-right:1px solid #ccc;border-bottom:1px solid #ccc;border-top:1px solid #666;border-left:1px solid #666;}
|
||||
#TB_window.TB_captionTop img#TB_Image{margin-top:0;}
|
||||
#TB_window.TB_captionBottom img#TB_Image{margin-bottom:0;}
|
||||
@@ -38,9 +36,7 @@
|
||||
#TB_ajaxContent{clear:both;padding:15px;overflow:auto;text-align:left;line-height:1.4em;background:#ffffff;}
|
||||
#TB_ajaxContent p{padding:5px 0px 5px 0px;}
|
||||
#TB_load{position:fixed;display:none;z-index:10103;top:50%;left:50%;background-color:#E8E8E8;border:1px solid #555;margin:-46px 0pt 0pt -119px;padding:40px 15px 15px;}
|
||||
* html #TB_load{position:absolute;margin-top:expression(0 - parseInt(this.offsetHeight/2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');}
|
||||
#TB_HideSelect{z-index:10099;position:fixed;top:0;left:0;background-color:#fff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;}
|
||||
* html #TB_HideSelect{position:absolute;height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight:document.body.offsetHeight + 'px');}
|
||||
#TB_iframeContent{clear:both;border:none;margin-bottom:-2px;/margin-bottom:0;background:#ffffff;}
|
||||
#TB_iframeContent, x:-moz-any-link{margin-bottom:-3px;}
|
||||
:root #TB_iframeContent{margin-bottom:-3px \0/IE9;}
|
||||
|
||||
Vendored
+9
-7
@@ -4,8 +4,9 @@ effect_close:"fade",effect_trans:"none",effect_title:"none",effect_cap:"none",ef
|
||||
function tb_click(){if("no_thickbox"==tb_options.mobile_support){var a=tb_getPageSize();if(a[0]<=tb_options.small_width||a[1]<=tb_options.small_height)return!0}null!==document.getElementById("TB_window")&&(jQuery(document).unbind(".thickbox"),jQuery("#TB_window").trigger("tb_unload").remove(),jQuery("body").append("<div id='TB_window' class='TB_Transition'></div>"));tb_show(this,this.href||this.alt,this.rel||!1);this.blur();return!1}
|
||||
function tb_caption(a,c){for(var c=c||tb_options.ref_cap,b,d=0;d<c.length&&!b;d++)switch(c[d]){case "link-title":b=a.title;break;case "link-name":b=a.name;break;case "blank":return"";case "img-title":b=jQuery(a).children("img").attr("title");break;case "img-alt":b=jQuery(a).children("img").attr("alt");break;case "img-cap":b=jQuery(a).parent().is("dt.gallery-icon")?jQuery(a).parent().nextAll(".wp-caption-text").text().replace(/^\s+|\s+$/g,""):jQuery(a).nextAll(".wp-caption-text").text();break;case "img-desc":b=
|
||||
jQuery(a).children("img").attr("longdesc");break;case "img-name":b=jQuery(a).children("img").attr("name")}return b.replace(/(\r\n|[\n\r])/g,"<br />")}
|
||||
function tb_show(a,c,b){try{"undefined"===typeof document.body.style.maxHeight?(jQuery("body","html").css({height:"100%",width:"100%"}),jQuery("html").css("overflow","hidden"),null===document.getElementById("TB_HideSelect")&&(jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window'></div>"),"close"==tb_options.click_bg&&jQuery("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&(jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"),
|
||||
"close"==tb_options.click_bg&&jQuery("#TB_overlay").click(tb_remove));tb_detectMacXFF()?jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack"):jQuery("#TB_overlay").addClass("TB_overlayBG");jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");0==parseInt(jQuery("#TB_load").css("marginLeft"))&&jQuery("#TB_load").css("marginLeft",-jQuery("#TB_load").outerWidth()/2);0==parseInt(jQuery("#TB_load").css("marginTop"))&&jQuery("#TB_load").css("marginTop",-jQuery("#TB_load").outerHeight()/
|
||||
function tb_show(a,c,b){try{"undefined"===typeof document.body.style.maxHeight?(jQuery("body","html").css({height:"100%",width:"100%"}),jQuery("html").css("overflow","hidden"),null===document.getElementById("TB_HideSelect")&&(jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window'></div>"),jQuery("#TB_overlay, #TB_HideSelect").css({position:"absolute",height:(document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:
|
||||
document.body.offsetHeight)+"px"}),"close"==tb_options.click_bg&&jQuery("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&(jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"),"close"==tb_options.click_bg&&jQuery("#TB_overlay").click(tb_remove));tb_detectMacXFF()?jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack"):jQuery("#TB_overlay").addClass("TB_overlayBG");jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");
|
||||
"undefined"==typeof document.body.style.maxHeight&&jQuery("#TB_load").css({position:"absolute",marginTop:-parseInt(jQuery("#TB_load")[0].offsetHeight/2)+(TBWindowMargin=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop)+"px"});0==parseInt(jQuery("#TB_load").css("marginLeft"))&&jQuery("#TB_load").css("marginLeft",-jQuery("#TB_load").outerWidth()/2);0==parseInt(jQuery("#TB_load").css("marginTop"))&&jQuery("#TB_load").css("marginTop",-jQuery("#TB_load").outerHeight()/
|
||||
2);jQuery("#TB_load").show();var d=c;-1!==c.indexOf("?")&&(d=c.substr(0,c.indexOf("?")));-1!==c.indexOf("#")&&(d=c.substr(0,c.indexOf("#")));var e=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$|\.pdf$/,g=d.toLowerCase().match(e);if(".jpg"==g||".jpeg"==g||".png"==g||".gif"==g||".bmp"==g||".webp"==g){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=!1;TB_LastURL=TB_LastCaption=TB_FirstURL=TB_FirstCaption="";if(b){TB_TempArray=jQuery("a[rel="+b+"]").get();
|
||||
for(TB_Counter=0;TB_Counter<TB_TempArray.length&&""===TB_NextHTML;TB_Counter++)TB_TempArray[TB_Counter].href.toLowerCase().match(e),("object"==typeof a?TB_TempArray[TB_Counter]!=a:TB_TempArray[TB_Counter].href!=c)?TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter],TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'> <a href='#'>"+thickboxL10n.next+"</a></span>"):(TB_PrevCaption=TB_TempArray[TB_Counter],TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'> <a href='#'>"+
|
||||
thickboxL10n.prev+"</a></span>"):(TB_FoundURL=!0,TB_imageCount=thickboxL10n.image+" "+(TB_Counter+1)+" "+thickboxL10n.of+" "+TB_TempArray.length);TB_FirstCaption=TB_TempArray[0];TB_FirstURL=TB_TempArray[0].href;TB_LastCaption=TB_TempArray[TB_TempArray.length-1];TB_LastURL=TB_TempArray[TB_TempArray.length-1].href}imgPreloader=new Image;imgPreloader.onload=function(){function d(a,b,c){var e=a-jQuery("#TB_Image").width(),r=b-jQuery("#TB_Image").height();jQuery("#TB_window").css({marginLeft:Math.round(parseInt(jQuery("#TB_window").css("marginLeft"))-
|
||||
@@ -32,11 +33,12 @@ f.inlineId).children()),jQuery("#TB_window").bind("tb_unload",function(){jQuery(
|
||||
function(){tb_position();jQuery("#TB_load").remove();tb_open();tb_roundCorner("ajax")})}tb_options.move_content&&jQuery("#TB_window").bind("mousedown.thickbox",function(a){return tb_move(a,-1!=c.indexOf("TB_iframe")?"iframe":"ajax")});tb_options.resize_content&&(tb_resize_init(),jQuery("#TB_Resize").bind("mousedown.thickbox",function(a){return tb_resize(a,-1!=c.indexOf("TB_iframe")?"iframe":"ajax")}));"none"!=tb_options.effect_title&&(jQuery("#TB_title").addClass("hover"),"zoom"==tb_options.effect_title&&
|
||||
jQuery("#TB_title").css({left:"50%",marginLeft:-TB_WIDTH/2}),jQuery("#TB_window").bind("mouseenter.thickbox",function(){tb_hover(jQuery("#TB_title"),tb_options.effect_title)}).bind("mouseleave.thickbox",function(){tb_hover(jQuery("#TB_title"),tb_options.effect_title,!0)}));"true"!=f.modal&&jQuery(document).bind("keyup.thickbox",function(a){if(-1!=jQuery.inArray(a.which,tb_options.keys_close))return a.stopImmediatePropagation(),jQuery(document).triggerHandler("wp_CloseOnEscape",[{event:a,what:"thickbox",
|
||||
cb:tb_remove}])||tb_remove(),!1})}}catch(w){tb_options.debug&&alert(w)}}
|
||||
function tb_open(){"hidden"==jQuery("#TB_window").css("visibility")&&jQuery("#TB_window").css("visibility","visible");var a=jQuery("#TB_window").is(".TB_Transition")?tb_options.effect_trans:tb_options.effect_open;tb_effectView(a,!1);var c=function(){tb_effectView(a)};switch(a){case "zoom":jQuery("#TB_window").height(jQuery("#TB_window").height());"undefined"==typeof document.body.style.maxHeight&&jQuery("#TB_window").css({marginTop:-jQuery("#TB_window").height()/2,top:jQuery(window).height()/2+jQuery(document).scrollTop()});
|
||||
jQuery("#TB_Image").hide().show(tb_options.effect_speed);jQuery("#TB_window").show(tb_options.effect_speed,c);break;case "slide":"undefined"==typeof document.body.style.maxHeight&&jQuery("#TB_window").css({marginTop:-jQuery("#TB_window").height()/2,top:jQuery(window).height()/2+jQuery(document).scrollTop()});jQuery("#TB_window").slideDown(tb_options.effect_speed,c);break;case "fade":jQuery("#TB_window").fadeIn(tb_options.effect_speed,c);break;default:jQuery("#TB_window").show()}"none"==jQuery("#TB_window").css("display")&&
|
||||
jQuery("#TB_window").css("display","block");jQuery("#TB_title").height(Math.max(jQuery("#TB_title").height(),jQuery("#TB_ajaxWindowTitle").height()+13))}
|
||||
function tb_roundCorner(a){var c=jQuery("#TB_window")[0].currentStyle||document.defaultView.getComputedStyle(jQuery("#TB_window")[0],""),b=c.borderTopLeftRadius;if(0<parseInt(b))if("transparent"!=jQuery("#TB_window").css("backgroundColor")&&"rgba(0, 0, 0, 0)"!=jQuery("#TB_window").css("backgroundColor")&&jQuery("#TB_window").css("backgroundColor",0<parseInt(c.borderTopWidth)?c.borderTopColor:"transparent"),"iframe"==a){if(jQuery.browser.safari||jQuery.browser.webkit){var c=jQuery("#TB_iframeContent"),
|
||||
d=jQuery("#TB_iframeContent").contents(),a=0==d.length||c.width()<d.width(),c=0==d.length||c.height()<d.height();("top"==tb_options.position_title||"none"==tb_options.position_title)&&(a||c)&&jQuery("#TB_iframeContent").css("paddingBottom",b);("bottom"==tb_options.position_title||"none"==tb_options.position_title)&&c&&jQuery("#TB_iframeContent").css("paddingTop",b)}}else if("ajax"==a){c=jQuery("#TB_ajaxContent")[0];a=c.scrollWidth>c.clientWidth;c=c.scrollHeight>c.clientHeight;if(("top"==tb_options.position_title||
|
||||
function tb_open(){"hidden"==jQuery("#TB_window").css("visibility")&&jQuery("#TB_window").css("visibility","visible");var a=jQuery("#TB_window").is(".TB_Transition")?tb_options.effect_trans:tb_options.effect_open;tb_effectView(a,!1);var c=function(){tb_effectView(a)};switch(a){case "zoom":jQuery("#TB_window").height(jQuery("#TB_window").height());"undefined"==typeof document.body.style.maxHeight&&"relative"!=jQuery("body").css("position")&&jQuery("#TB_window").css({marginTop:-jQuery("#TB_window").height()/
|
||||
2,top:jQuery(window).height()/2+jQuery(document).scrollTop()});jQuery("#TB_Image").hide().show(tb_options.effect_speed);jQuery("#TB_window").show(tb_options.effect_speed,c);break;case "slide":"undefined"==typeof document.body.style.maxHeight&&"relative"!=jQuery("body").css("position")&&jQuery("#TB_window").css({marginTop:-jQuery("#TB_window").height()/2,top:jQuery(window).height()/2+jQuery(document).scrollTop()});jQuery("#TB_window").slideDown(tb_options.effect_speed,c);break;case "fade":jQuery("#TB_window").fadeIn(tb_options.effect_speed,
|
||||
c);break;default:jQuery("#TB_window").show()}"none"==jQuery("#TB_window").css("display")&&jQuery("#TB_window").css("display","block");jQuery("#TB_title").height(Math.max(jQuery("#TB_title").height(),jQuery("#TB_ajaxWindowTitle").height()+13));"undefined"==typeof document.body.style.maxHeight&&jQuery("#TB_window").css({position:"absolute",marginTop:-parseInt(jQuery("#TB_window")[0].offsetHeight/2)+(TBWindowMargin=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop)+
|
||||
"px"})}
|
||||
function tb_roundCorner(a){var c=jQuery("#TB_window")[0].currentStyle||document.defaultView.getComputedStyle(jQuery("#TB_window")[0],""),b=c.borderTopLeftRadius;if(0<parseInt(b))if("transparent"!=jQuery("#TB_window").css("backgroundColor")&&"rgba(0, 0, 0, 0)"!=jQuery("#TB_window").css("backgroundColor")&&jQuery("#TB_window").css("backgroundColor",0<parseInt(c.borderTopWidth)?c.borderTopColor:"transparent"),"iframe"==a){if(jQuery.browser.safari||jQuery.browser.webkit){var c=jQuery("#TB_iframeContent"),d=
|
||||
jQuery("#TB_iframeContent").contents(),a=0==d.length||c.width()<d.width(),c=0==d.length||c.height()<d.height();("top"==tb_options.position_title||"none"==tb_options.position_title)&&(a||c)&&jQuery("#TB_iframeContent").css("paddingBottom",b);("bottom"==tb_options.position_title||"none"==tb_options.position_title)&&c&&jQuery("#TB_iframeContent").css("paddingTop",b)}}else if("ajax"==a){c=jQuery("#TB_ajaxContent")[0];a=c.scrollWidth>c.clientWidth;c=c.scrollHeight>c.clientHeight;if(("top"==tb_options.position_title||
|
||||
"none"==tb_options.position_title)&&(a||c))jQuery("#TB_ajaxContent").css("marginBottom",b).after("<div id='TB_ajaxContentMarginBottom'></div>"),"none"==tb_options.position_title&&a?jQuery("#TB_ajaxContent").css({borderBottomLeftRadius:0,borderBottomRightRadius:0}):jQuery("#TB_ajaxContent").css("borderRadius",0),jQuery("#TB_ajaxContentMarginBottom").css({height:b,borderBottomLeftRadius:b,borderBottomRightRadius:b});if(("bottom"==tb_options.position_title||"none"==tb_options.position_title)&&c)jQuery("#TB_ajaxContent").css({marginTop:b,
|
||||
borderRadius:0}).after("<div id='TB_ajaxContentMarginTop'></div>"),jQuery("#TB_ajaxContentMarginTop").css({height:b,borderTopLeftRadius:b,borderTopRightRadius:b})}}function tb_effectView(a,c){"none"!=a&&(("boolean"==typeof c?c:1)?jQuery("#TB_ImageClick").show():jQuery("#TB_ImageClick").hide())}function tb_showIframe(){jQuery("#TB_load").remove();tb_open();tb_roundCorner("iframe")}
|
||||
function tb_remove(){tb_effectView(tb_options.effect_close,!1);var a=function(){jQuery("#TB_window,#TB_overlay,#TB_HideSelect").trigger("tb_unload").unbind().remove();"undefined"==typeof document.body.style.maxHeight&&(jQuery("body","html").css({height:"auto",width:"auto"}),jQuery("html").css("overflow",""))};switch(tb_options.effect_close){case "zoom":jQuery("#TB_Image").hide(tb_options.effect_speed);jQuery("#TB_window").hide(tb_options.effect_speed,a);break;case "slide":jQuery("#TB_window").slideUp(tb_options.effect_speed,
|
||||
|
||||
Reference in new issue
Block a user