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. git-svn-id: https://develop.svn.wordpress.org/trunk@22836 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9774c85abc
commit
faca39f74c
@ -2819,6 +2819,7 @@
|
||||
},
|
||||
|
||||
events: {
|
||||
'input': 'search',
|
||||
'keyup': 'search',
|
||||
'change': 'search',
|
||||
'search': 'search'
|
||||
@ -3534,7 +3535,9 @@
|
||||
className: 'embed-url',
|
||||
|
||||
events: {
|
||||
'keyup': 'url'
|
||||
'input': 'url',
|
||||
'keyup': 'url',
|
||||
'change': 'url'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user