aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2012-05-26 13:55:06 -0700
committerReed Loden <reed@reedloden.com>2012-05-26 13:55:06 -0700
commit2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3 (patch)
treeb604f73114bd774f3f8a74e2e7cd56cf13a5a5c9 /js
parentBug 744691: Throw an error early when calling a method from a non-existent class (diff)
downloadbugzilla-2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3.tar.gz
bugzilla-2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3.tar.bz2
bugzilla-2bc73c33a8d738de80dd54e77e8ff7d1f5a4f7b3.zip
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();