Media: Ensure search box reflects actual search state.

* Also switches search box to use `<input type="search" />` 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
This commit is contained in:
Daryl Koopersmith 2012-11-09 04:44:31 +00:00
parent 9d7cb4ac7a
commit 9c4214745b
1 changed files with 2 additions and 2 deletions

View File

@ -2086,7 +2086,7 @@
className: 'search', className: 'search',
attributes: { attributes: {
type: 'text', type: 'search',
placeholder: l10n.search placeholder: l10n.search
}, },
@ -2136,7 +2136,7 @@
controller: this.controller, controller: this.controller,
model: this.collection.props, model: this.collection.props,
priority: -40 priority: -40
}) ); }).render() );
} }
this.attachments = new media.view.Attachments({ this.attachments = new media.view.Attachments({