Commit 122a726b authored by Sven Franck's avatar Sven Franck

added preventDefault handler to JQM filterable event

parent 0e604542
......@@ -4473,12 +4473,10 @@ $.widget( "mobile.page", {
},
go: function( steps ) {
//if hashlistening is enabled use native history method
if ( $.mobile.hashListeningEnabled ) {
window.history.go( steps );
} else {
//we are not listening to the hash so handle history internally
var activeIndex = $.mobile.navigate.history.activeIndex,
index = activeIndex + parseInt( steps, 10 ),
......@@ -13369,7 +13367,9 @@ $.widget( "mobile.filterable", {
}
this._timer = this._delay( function() {
this._trigger( "beforefilter", "beforefilter", { input: search } );
if (this._trigger( "beforefilter", "beforefilter", { input: search } ) === false) {
return false;
};
// Change val as lastval for next execution
search[ 0 ].setAttribute( "data-" + $.mobile.ns + "lastval", val );
......
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