Permalink
Browse files

Fix IE HTML button value mishandling, fixes #6469 for 2.6

git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent bf3d4eb commit 1e0a06e62ee2c681e692aafa83509b614656ba3e azaozz committed Sep 17, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 wp-admin/includes/media.php
@@ -618,11 +618,11 @@ function get_attachment_fields_to_edit($post, $errors = null) {
'input' => 'html',
'html' => "
<input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($file) . "' /><br />
- <button type='button' class='button url-$post->ID' value=''>" . __('None') . "</button>
- <button type='button' class='button url-$post->ID' value='" . attribute_escape($file) . "'>" . __('File URL') . "</button>
- <button type='button' class='button url-$post->ID' value='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
+ <button type='button' class='button url-$post->ID' title=''>" . __('None') . "</button>
+ <button type='button' class='button url-$post->ID' title='" . attribute_escape($file) . "'>" . __('File URL') . "</button>
+ <button type='button' class='button url-$post->ID' title='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
<script type='text/javascript'>
- jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(this.value);});
+ jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(jQuery(this).attr('title'));});
</script>\n",
'helps' => __('Enter a link URL or click above for presets.'),
),

0 comments on commit 1e0a06e

Please sign in to comment.