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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-06-14 08:25:34 +00:00
parent 44f8ce8909
commit 09c0f511d6
1 changed files with 3 additions and 3 deletions

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,