Changeset 8914
- Timestamp:
- 09/17/2008 02:08:12 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r8912 r8914 589 589 590 590 return "<input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($url) . "' /><br /> 591 <button type='button' class='button url-$post->ID' value=''>" . __('None') . "</button>592 <button type='button' class='button url-$post->ID' value='" . attribute_escape($file) . "'>" . __('File URL') . "</button>593 <button type='button' class='button url-$post->ID' value='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>591 <button type='button' class='button url-$post->ID' title=''>" . __('None') . "</button> 592 <button type='button' class='button url-$post->ID' title='" . attribute_escape($file) . "'>" . __('File URL') . "</button> 593 <button type='button' class='button url-$post->ID' title='" . attribute_escape($link) . "'>" . __('Post URL') . "</button> 594 594 <script type='text/javascript'> 595 jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val( this.value);});595 jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(jQuery(this).attr('title'));}); 596 596 </script>\n"; 597 597 }
Note: See TracChangeset
for help on using the changeset viewer.