WordPress.org

Make WordPress Core

Changeset 22836


Ignore:
Timestamp:
11/26/2012 03:35:28 AM (5 years ago)
Author:
nacin
Message:

Media: Watch more events for input changes to catch paste, autocomplete, etc.

Fixes issue where pasting a URL in 'From URL' (via the context menu) did not
enable the insert button, as the event was not yet fired.

props koopersmith.
fixes #22545.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22825 r22836  
    28202820
    28212821        events: {
     2822            'input':  'search',
    28222823            'keyup':  'search',
    28232824            'change': 'search',
     
    35353536
    35363537        events: {
    3537             'keyup': 'url'
     3538            'input':  'url',
     3539            'keyup':  'url',
     3540            'change': 'url'
    35383541        },
    35393542
Note: See TracChangeset for help on using the changeset viewer.