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:
parent
0245980dab
commit
5869e6bf8d
|
@ -588,11 +588,11 @@ function image_link_input_fields($post, $url_type='') {
|
||||||
$url = $link;
|
$url = $link;
|
||||||
|
|
||||||
return "<input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($url) . "' /><br />
|
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' title=''>" . __('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' title='" . 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='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
|
||||||
<script type='text/javascript'>
|
<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";
|
</script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue