Fix thickbox positioning if toolbar is not present.
fixes #26745. git-svn-id: https://develop.svn.wordpress.org/trunk@27248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fc2230e12a
commit
b197472a5c
@ -43,8 +43,8 @@ var tb_position;
|
|||||||
W = ( 720 < width ) ? 720 : width,
|
W = ( 720 < width ) ? 720 : width,
|
||||||
adminbar_height = 0;
|
adminbar_height = 0;
|
||||||
|
|
||||||
if ( $('body.admin-bar').length ) {
|
if ( $('#wpadminbar').length ) {
|
||||||
adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
|
adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( tbWindow.size() ) {
|
if ( tbWindow.size() ) {
|
||||||
|
@ -10,8 +10,8 @@ jQuery(document).ready(function($) {
|
|||||||
W = ( 720 < width ) ? 720 : width,
|
W = ( 720 < width ) ? 720 : width,
|
||||||
adminbar_height = 0;
|
adminbar_height = 0;
|
||||||
|
|
||||||
if ( $('body.admin-bar').length ) {
|
if ( $('#wpadminbar').length ) {
|
||||||
adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
|
adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( tbWindow.size() ) {
|
if ( tbWindow.size() ) {
|
||||||
|
@ -769,8 +769,8 @@ jQuery(document).ready( function($) {
|
|||||||
W = ( 1040 < width ) ? 1040 : width,
|
W = ( 1040 < width ) ? 1040 : width,
|
||||||
adminbar_height = 0;
|
adminbar_height = 0;
|
||||||
|
|
||||||
if ( $('body.admin-bar').length ) {
|
if ( $('#wpadminbar').length ) {
|
||||||
adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
|
adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( tbWindow.size() ) {
|
if ( tbWindow.size() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user