combobox can send now focused with enter when a complete match exsits like 5 in priority in spamfilters
| | |
| | | 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" ); |
| | | |