From 2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Sat, 26 May 2012 13:55:06 -0700 Subject: Bug 754616 - Don't display autocomplete box when there are no possible choices [r=LpSolit a=LpSolit] --- js/field.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/field.js b/js/field.js index 4150f8ce4..94876059e 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(); -- cgit v1.2.3-24-g4f1b