Commit 3c2b2135 authored by Sven Franck's avatar Sven Franck

libs/JQM: fix filter not allowing preventDefault until PR is merged

parent edd23f40
/* HACKS: #7155, #7162
/* HACKS: #7155, #7162, #7154
/*!
* jQuery Mobile 1.4.3pre
* Git HEAD hash: 77b5304ec0510824e6f014e6caf716701db6abd2 <> Date: Thu Mar 6 2014 16:14:07 UTC
......@@ -13671,7 +13671,9 @@ $.widget( "mobile.filterable", {
}
this._timer = this._delay( function() {
this._trigger( "beforefilter", null, { input: search } );
if ( this._trigger( "beforefilter", null, { input: search } ) === false ) {
return false;
}
// Change val as lastval for next execution
search[ 0 ].setAttribute( "data-" + $.mobile.ns + "lastval", val );
......@@ -13882,7 +13884,7 @@ $.widget( "mobile.filterable", $.mobile.filterable, {
// Also trigger listviewbeforefilter if this widget is also a listview
this._widget._trigger( "beforefilter", event, data );
}
this._super( type, event, data );
return this._super( type, event, data );
},
_setWidget: function( widget ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment