[wp-trac] [WordPress Trac] #18989: Inserting images with Press This not working
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 24 20:24:01 UTC 2011
#18989: Inserting images with Press This not working
--------------------------+------------------
Reporter: ronbme | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Press This | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------
Comment (by duck_):
Caused by [18570] which added the #photo-add-url-div div element to the
Press This screen. This contains and input with ID "this_photo":
{{{
<input type="text" id="this_photo" name="this_photo" class="tbtitle text"
onkeypress="if(event.keyCode==13) image_selector();" />
}}}
this interferes with the image_selector() JavaScript when used for the
input return by the photo_thumnail AJAX so that:
{{{
src = jQuery('#this_photo').val();
}}}
returns an empty string as it's retrieving #this_photo from #photo-add-
url-div instead from the thickbox.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18989#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list