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

git-svn-id: https://develop.svn.wordpress.org/trunk@15248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-06-14 08:25:34 +00:00
parent b266cf37cb
commit 3ca83773a7

View File

@ -371,8 +371,8 @@ class Custom_Image_Header {
var xinit = <?php echo HEADER_IMAGE_WIDTH; ?>;
var yinit = <?php echo HEADER_IMAGE_HEIGHT; ?>;
var ratio = xinit / yinit;
var ximg = jQuery('#upload').width();
var yimg = jQuery('#upload').height();
var ximg = jQuery('img#upload').width();
var yimg = jQuery('img#upload').height();
if ( yimg < yinit || ximg < xinit ) {
if ( ximg / yimg > ratio ) {
@ -384,7 +384,7 @@ class Custom_Image_Header {
}
}
jQuery('#upload').imgAreaSelect({
jQuery('img#upload').imgAreaSelect({
handles: true,
keys: true,
aspectRatio: xinit + ':' + yinit,