Skip to content
This repository
Browse code

Merge pull request #4760 from gseguin/issue-4721

Proposed fix for #4721: Added a "listviewbeforefilter" event
  • Loading branch information...
commit 9ea70dfd99fadb8494429c76bb358305dfff2583 2 parents 35d3e9c + 6f9e2bb
Ghislain Seguin authored August 02, 2012

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

  1. 2  js/widgets/listview.filter.js
2  js/widgets/listview.filter.js
@@ -44,6 +44,8 @@ $( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function(
44 44
 				itemtext = "",
45 45
 				item;
46 46
 
  47
+			listview._trigger( "beforefilter", "beforefilter", { input: this } );
  48
+
47 49
 			// Change val as lastval for next execution
48 50
 			$this.jqmData( "lastval" , val );
49 51
 			if ( val.length < lastval.length || val.indexOf( lastval ) !== 0 ) {

0 notes on commit 9ea70df

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