Make WordPress Core

Changeset 15248


Ignore:
Timestamp:
06/14/2010 08:25:34 AM (15 years ago)
Author:
nacin
Message:

Use more specific selector. props CAMWebDesign, fixes #13880.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r15231 r15248  
    372372        var yinit = <?php echo HEADER_IMAGE_HEIGHT; ?>;
    373373        var ratio = xinit / yinit;
    374         var ximg = jQuery('#upload').width();
    375         var yimg = jQuery('#upload').height();
     374        var ximg = jQuery('img#upload').width();
     375        var yimg = jQuery('img#upload').height();
    376376
    377377        if ( yimg < yinit || ximg < xinit ) {
     
    385385        }
    386386
    387         jQuery('#upload').imgAreaSelect({
     387        jQuery('img#upload').imgAreaSelect({
    388388            handles: true,
    389389            keys: true,
Note: See TracChangeset for help on using the changeset viewer.