From: Reed Loden Date: Sat, 26 May 2012 20:55:06 +0000 (-0700) Subject: Bug 754616 - Don't display autocomplete box when there are no possible choices X-Git-Tag: bugzilla-4.3.2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3;p=thirdparty%2Fbugzilla.git Bug 754616 - Don't display autocomplete box when there are no possible choices [r=LpSolit a=LpSolit] --- diff --git a/js/field.js b/js/field.js index 4150f8ce42..94876059e8 100644 --- a/js/field.js +++ b/js/field.js @@ -902,7 +902,8 @@ YAHOO.bugzilla.fieldAutocomplete = { */ fieldAutoComp.textboxFocusEvent.subscribe( function(){ var sInputValue = YAHOO.util.Dom.get(field).value; - if( sInputValue.length === 0 ){ + if( sInputValue.length === 0 + && YAHOO.bugzilla.field_array[field].length > 0 ){ this.sendQuery(sInputValue); this.collapseContainer(); this.expandContainer();