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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-09-17 02:08:12 +00:00
parent 0245980dab
commit 5869e6bf8d
1 changed files with 4 additions and 4 deletions

View File

@ -588,11 +588,11 @@ function image_link_input_fields($post, $url_type='') {
$url = $link;
return "<input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($url) . "' /><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";
}