Commit 55fee880 authored by xaver's avatar xaver

combobox can send now focused with enter when a complete match exsits like 5...

combobox can send now focused with enter when a complete match exsits like 5 in priority in spamfilters
parent 1f1c39ad
......@@ -136,7 +136,19 @@
return false;
}
}
}
},
// open: function(event, ui) { }, alternativ event for check by enter input
search: function(event, ui) {
if ( !ui.item ) {
var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ),
valid = false;
select.children( "option" ).each(function() {
if ( $( this ).text().match( matcher ) ) {
this.selected = valid = true;
return false;
}
});
} }
})
.addClass( "ui-widget ui-widget-content ui-corner-left" );
......
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