Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for binding submit events for fitler wrapper #5509

Merged
merged 1 commit into from

2 participants

@stforek

In commit 336db34 another submit event was bound to wrapper object.
I merged 2 binds into 1.

@gabrielschulhof gabrielschulhof merged commit af81d12 into jquery:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 5 deletions.
  1. +2 −5 js/widgets/listview.filter.js
View
7 js/widgets/listview.filter.js
@@ -36,8 +36,8 @@ $.mobile.document.delegate( "ul, ol", "listviewcreate", function() {
"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
"role": "search"
}).submit( function( e ) {
- e.preventDefault();
search.blur();
+ return false;
}),
onKeyUp = function( e ) {
var $this = $( this ),
@@ -132,10 +132,7 @@ $.mobile.document.delegate( "ul, ol", "listviewcreate", function() {
wrapper.addClass( "ui-listview-filter-inset" );
}
- wrapper.bind( "submit", function() {
- return false;
- })
- .insertBefore( list );
+ wrapper.insertBefore( list );
});
})( jQuery );
Something went wrong with that request. Please try again.