From: Byron Jones Date: Tue, 24 Jul 2012 08:57:33 +0000 (+0800) Subject: Bug 764517: Don't automatically select the first keyword if the search string is... X-Git-Tag: bugzilla-4.2.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd81163bcecc92e20febf5cdc7ac083a117c6056;p=thirdparty%2Fbugzilla.git Bug 764517: Don't automatically select the first keyword if the search string is empty r=dkl, a=LpSolit --- diff --git a/js/field.js b/js/field.js index 2c3fd69b71..3d85ff116f 100644 --- a/js/field.js +++ b/js/field.js @@ -787,5 +787,8 @@ YAHOO.bugzilla.keywordAutocomplete = { this.expandContainer(); } }); + fieldAutoComp.dataRequestEvent.subscribe( function(type, args) { + args[0].autoHighlight = args[1] != ''; + }); } };