Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Blur the search field on submit -- Fixes #3303
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Nov 15, 2012
1 parent 751a158 commit 336db34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/widgets/listview.filter.js
Expand Up @@ -35,6 +35,9 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
var wrapper = $( "<form>", {
"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
"role": "search"
}).submit( function( e ) {
e.preventDefault();
search.blur();
}),
search = $( "<input>", {
placeholder: listview.options.filterPlaceholder
Expand Down

0 comments on commit 336db34

Please sign in to comment.