src/hg/js/hgGateway.js 1.4

1.4 2010/04/06 07:36:30 larrym
change minchars to 2
Index: src/hg/js/hgGateway.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgGateway.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 1000000 -r1.3 -r1.4
--- src/hg/js/hgGateway.js	10 Mar 2010 00:19:06 -0000	1.3
+++ src/hg/js/hgGateway.js	6 Apr 2010 07:36:30 -0000	1.4
@@ -1,31 +1,31 @@
 
 $(document).ready(function()
 {
     $('input#suggest').autocomplete({
                                         delay: 500,
-                                        minchars: 1,
+                                        minchars: 2,
                                         autowidth: true,
                                         ajax_get: ajaxGet(function () {return document.orgForm.db.value;}, new Object),
                                         callback: function (obj) {
                                             document.mainForm.position.value = obj.id;
                                         }
                                        });
 });
 
 function submitButtonOnClick()
 {
 // onClick handler for the "submit" button.
 // Handles situation where user types a gene name into the gene box and immediately hits the submit button,
 // expecting the browser to jump to that gene.
     var gene = $('#suggest').val();
     var db = $('input[name=db]').val();
     if(gene && gene.length > 0) {
         var pos = lookupGene(db, gene);
         if(!pos) {
             // turn this into a full text search.
             pos = gene;
         }
         $('input[name=position]').val(pos);
     }
     return true;
 }