Skip to content
This repository
Browse code

Blur the search field on submit -- Fixes #3303

(cherry picked from commit 336db34)
  • Loading branch information...
commit fef41bb7632ebef890f2c45a90818f8a158ce985 1 parent 8258425
Ghislain Seguin authored November 15, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  js/widgets/listview.filter.js
3  js/widgets/listview.filter.js
@@ -30,6 +30,9 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
30 30
 	var wrapper = $( "<form>", {
31 31
 			"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
32 32
 			"role": "search"
  33
+		}).submit( function( e ) {
  34
+			e.preventDefault();
  35
+			search.blur();
33 36
 		}),
34 37
 		search = $( "<input>", {
35 38
 			placeholder: listview.options.filterPlaceholder

0 notes on commit fef41bb

Please sign in to comment.
Something went wrong with that request. Please try again.