]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 754616 - Don't display autocomplete box when there are no possible choices
authorReed Loden <reed@reedloden.com>
Sat, 26 May 2012 20:55:06 +0000 (13:55 -0700)
committerReed Loden <reed@reedloden.com>
Sat, 26 May 2012 20:55:06 +0000 (13:55 -0700)
[r=LpSolit a=LpSolit]

js/field.js

index 4150f8ce4246f664a9680e7388eed6848db4c96a..94876059e8ede3c084b0b3445c658826358be924 100644 (file)
@@ -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();