Permalink
Browse files

Merge pull request #4760 from gseguin/issue-4721

Proposed fix for #4721: Added a "listviewbeforefilter" event
  • Loading branch information...
2 parents 35d3e9c + 6f9e2bb commit 9ea70dfd99fadb8494429c76bb358305dfff2583 @gseguin gseguin committed Aug 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/widgets/listview.filter.js
View
2 js/widgets/listview.filter.js
@@ -44,6 +44,8 @@ $( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function(
itemtext = "",
item;
+ listview._trigger( "beforefilter", "beforefilter", { input: this } );
+
// Change val as lastval for next execution
$this.jqmData( "lastval" , val );
if ( val.length < lastval.length || val.indexOf( lastval ) !== 0 ) {

0 comments on commit 9ea70df

Please sign in to comment.