| | |
| | | } |
| | | }) |
| | | .keypress(function(event) { |
| | | if(select.attr('disabled')) {
|
| | | event.preventDefault();
|
| | | return false;
|
| | | }
|
| | | if(event.keyCode == 13) { |
| | | event.preventDefault(); |
| | | var matcher = new RegExp( "" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "", "i" ), |
| | |
| | | }) |
| | | .addClass( "ui-widget ui-widget-content ui-corner-left" ) |
| | | .click(function() { |
| | | if(select.attr('disabled')) {
|
| | | event.preventDefault();
|
| | | return false;
|
| | | }
|
| | | // close if already visible |
| | | if ( input.autocomplete( "widget" ).is( ":visible" ) ) { |
| | | //input.autocomplete( "close" ); |
| | |
| | | .addClass( "ui-corner-right ui-combobox-toggle" ) |
| | | .css( { "width": 15, "height": (elheight > 0 ? elheight : 16) }) |
| | | .click(function() { |
| | | if(select.attr('disabled')) {
|
| | | event.preventDefault();
|
| | | return false;
|
| | | }
|
| | | // close if already visible |
| | | if ( input.autocomplete( "widget" ).is( ":visible" ) ) { |
| | | input.autocomplete( "close" ); |