]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/thickbox/thickbox.js
Wordpress 2.8
[autoinstalls/wordpress.git] / wp-includes / js / thickbox / thickbox.js
index 5770c8b0a4f6cd2219c9a6d3e23e1cdaca53a8cf..df602f3cffddaf9514abdd0f0838c57a45cd015a 100644 (file)
@@ -77,7 +77,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
                        TB_imageCount = "";
                        TB_FoundURL = false;
                        if(imageGroup){
-                               TB_TempArray = jQuery("a[@rel="+imageGroup+"]").get();
+                               TB_TempArray = jQuery("a[rel="+imageGroup+"]").get();
                                for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
                                        var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
                                                if (!(TB_TempArray[TB_Counter].href == url)) {                                          
@@ -281,8 +281,9 @@ function tb_remove() {
 }
 
 function tb_position() {
+var isIE6 = typeof document.body.style.maxHeight === "undefined";
 jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
-       if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
+       if ( ! isIE6 ) { // take away IE6
                jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
        }
 }