Commit 2bc73c33 authored by Reed Loden's avatar Reed Loden

Bug 754616 - Don't display autocomplete box when there are no possible choices

[r=LpSolit a=LpSolit]
parent da309367
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment