Permalink
Browse files

Blur the search field on submit -- Fixes #3303

  • Loading branch information...
1 parent 751a158 commit 336db34e031b0815c807554796519cd34d28c153 @gseguin gseguin committed Nov 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/widgets/listview.filter.js
@@ -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

0 comments on commit 336db34

Please sign in to comment.