summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2012-05-26 22:55:06 +0200
committerReed Loden <reed@reedloden.com>2012-05-26 22:55:06 +0200
commit2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3 (patch)
treeb604f73114bd774f3f8a74e2e7cd56cf13a5a5c9 /js
parentda309367841019ff8e0a6032fe341192f3fa6433 (diff)
downloadbugzilla-2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3.tar.gz
bugzilla-2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3.tar.xz
Bug 754616 - Don't display autocomplete box when there are no possible choices
[r=LpSolit a=LpSolit]
Diffstat (limited to 'js')
-rw-r--r--js/field.js3
1 files changed, 2 insertions, 1 deletions
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();