From 2d3c2c4d844c67758af379a763c883e03108454e Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Sat, 10 Nov 2012 18:56:11 +0000 Subject: [PATCH] Media: Watch additional search events. Properly captures clearing the search box. see #21390. git-svn-id: https://develop.svn.wordpress.org/trunk@22533 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-views.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 4dab3d0ad3..0c0ab9d9f7 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -2281,7 +2281,9 @@ }, events: { - 'keyup': 'search' + 'keyup': 'search', + 'change': 'search', + 'search': 'search' }, render: function() {