Make WordPress Core

Changeset 27248


Ignore:
Timestamp:
02/25/2014 12:25:58 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Fix thickbox positioning if toolbar is not present.

fixes #26745.

Location:
trunk/src/wp-admin/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/media-upload.js

    r27131 r27248  
    4444            adminbar_height = 0;
    4545
    46         if ( $('body.admin-bar').length ) {
    47             adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
     46        if ( $('#wpadminbar').length ) {
     47            adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
    4848        }
    4949
  • trunk/src/wp-admin/js/plugin-install.js

    r26323 r27248  
    1111            adminbar_height = 0;
    1212
    13         if ( $('body.admin-bar').length ) {
    14             adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
     13        if ( $('#wpadminbar').length ) {
     14            adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
    1515        }
    1616
  • trunk/src/wp-admin/js/theme.js

    r27012 r27248  
    770770            adminbar_height = 0;
    771771
    772         if ( $('body.admin-bar').length ) {
    773             adminbar_height = parseInt( jQuery('#wpadminbar').css('height'), 10 );
     772        if ( $('#wpadminbar').length ) {
     773            adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
    774774        }
    775775
Note: See TracChangeset for help on using the changeset viewer.