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: http://core.svn.wordpress.org/trunk@22836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
951082d4da
commit
24d68b3bcf
|
@ -2819,6 +2819,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
|
'input': 'search',
|
||||||
'keyup': 'search',
|
'keyup': 'search',
|
||||||
'change': 'search',
|
'change': 'search',
|
||||||
'search': 'search'
|
'search': 'search'
|
||||||
|
@ -3534,7 +3535,9 @@
|
||||||
className: 'embed-url',
|
className: 'embed-url',
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'keyup': 'url'
|
'input': 'url',
|
||||||
|
'keyup': 'url',
|
||||||
|
'change': 'url'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
|
Loading…
Reference in New Issue