Make WordPress Core

Changeset 8914


Ignore:
Timestamp:
09/17/2008 02:08:12 AM (18 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r8912 r8914  
    589589   
    590590    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>
    594594                <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'));});
    596596                </script>\n";
    597597}
Note: See TracChangeset for help on using the changeset viewer.