From 9c4214745b81fafaadf8b7933047ca2ce68d4010 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Fri, 9 Nov 2012 04:44:31 +0000 Subject: [PATCH] Media: Ensure search box reflects actual search state. * Also switches search box to use `` to take advantage of browser UI to clear the field. fixes #22315, see #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22487 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 1459042540..07504c0f79 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -2086,7 +2086,7 @@ className: 'search', attributes: { - type: 'text', + type: 'search', placeholder: l10n.search }, @@ -2136,7 +2136,7 @@ controller: this.controller, model: this.collection.props, priority: -40 - }) ); + }).render() ); } this.attachments = new media.view.Attachments({