From 9125332d5f3d8f3aa66eef02a4b05e1ea8b80f83 Mon Sep 17 00:00:00 2001 From: mcramer <m.cramer@pixcept.de> Date: Wed, 07 Nov 2012 08:36:43 -0500 Subject: [PATCH] Changed: - open select box on click - changed css color of box texts to standard instead of blue --- interface/web/js/jquery.tipsy.js | 16 +++++++++++++++- interface/web/themes/default/css/jquery-ui-1.8.16.custom.css | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/interface/web/js/jquery.tipsy.js b/interface/web/js/jquery.tipsy.js index 9550eea..735d72e 100644 --- a/interface/web/js/jquery.tipsy.js +++ b/interface/web/js/jquery.tipsy.js @@ -344,7 +344,21 @@ $(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 ) { diff --git a/interface/web/themes/default/css/jquery-ui-1.8.16.custom.css b/interface/web/themes/default/css/jquery-ui-1.8.16.custom.css index 547e717..ca34039 100644 --- a/interface/web/themes/default/css/jquery-ui-1.8.16.custom.css +++ b/interface/web/themes/default/css/jquery-ui-1.8.16.custom.css @@ -66,7 +66,7 @@ /* 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; } -- Gitblit v1.9.1