Make WordPress Core

Changeset 8915


Ignore:
Timestamp:
09/17/2008 02:10:01 AM (17 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r8607 r8915  
    619619            'html'       => "
    620620                <input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($file) . "' /><br />
    621                 <button type='button' class='button url-$post->ID' value=''>" . __('None') . "</button>
    622                 <button type='button' class='button url-$post->ID' value='" . attribute_escape($file) . "'>" . __('File URL') . "</button>
    623                 <button type='button' class='button url-$post->ID' value='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
     621                <button type='button' class='button url-$post->ID' title=''>" . __('None') . "</button>
     622                <button type='button' class='button url-$post->ID' title='" . attribute_escape($file) . "'>" . __('File URL') . "</button>
     623                <button type='button' class='button url-$post->ID' title='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
    624624                <script type='text/javascript'>
    625                 jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(this.value);});
     625                jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(jQuery(this).attr('title'));});
    626626                </script>\n",
    627627            'helps'      => __('Enter a link URL or click above for presets.'),
Note: See TracChangeset for help on using the changeset viewer.