Changed:
- open select box on click
- changed css color of box texts to standard instead of blue
| | |
| | | $(this).autocomplete('option','select').call($(this), event, { item: { option: selected.get(0), internal: true } }); |
| | | } |
| | | }) |
| | | .addClass( "ui-widget ui-widget-content ui-corner-left" ); |
| | | .addClass( "ui-widget ui-widget-content ui-corner-left" ) |
| | | .click(function() { |
| | | // close if already visible |
| | | if ( input.autocomplete( "widget" ).is( ":visible" ) ) { |
| | | //input.autocomplete( "close" ); |
| | | return; |
| | | } |
| | | |
| | | // work around a bug (likely same cause as #5265) |
| | | $( this ).blur(); |
| | | |
| | | // pass empty string as value to search for, displaying all results |
| | | input.autocomplete( "search", "" ); |
| | | input.focus(); |
| | | }); |
| | | if(select.hasClass('flags')) input.addClass('flags'); |
| | | |
| | | input.data( "autocomplete" )._renderItem = function( ul, item ) { |
| | |
| | |
|
| | | /* Interaction states
|
| | | ----------------------------------*/
|
| | | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #c5dbec; background: #dfeffc url(images/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2e6e9e; }
|
| | | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #c5dbec; background: #dfeffc url(images/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x; font-weight: bold; /*color: #2e6e9e;*/ }
|
| | | .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2e6e9e; text-decoration: none; }
|
| | | .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #79b7e7; background: #d0e5f5 url(images/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1d5987; }
|
| | | .ui-state-hover a, .ui-state-hover a:hover { color: #1d5987; text-decoration: none; }
|