[wp-trac] Re: [WordPress Trac] #7990: "File URL" button not working
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 28 15:52:18 GMT 2008
#7990: "File URL" button not working
------------------------------------------+---------------------------------
Reporter: blonkm | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.7
Component: General | Version: 2.6
Severity: critical | Resolution:
Keywords: IE6 fileurl insert into post |
------------------------------------------+---------------------------------
Comment (by blonkm):
I found the problem, and have a solution as well:
Line 625 of wp-admin/includes/media.php
jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).sib
lings('input').val(this.attributes['value'].value);});
The problem is that IE reports the innerText of a button as the value
attribute, if you don't explicitly tell it to take the attribute from the
attributes collection. This does need some cross browser testing, since I
am not sure all browser understand the attributes collection.
Still I wonder if this isn't part of jQuery or prototype somewhere.
--
Ticket URL: <http://trac.wordpress.org/ticket/7990#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list