1c6c924436ec6dfb8e8164b73f659c655fa98a7d
larrym
  Wed Feb 22 15:45:09 2012 -0800
convert showWarning calls to warn in javascript code (I'm cleaning up code by removing a reimplementation of the warn code)
diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js
index 50430bb..a1f99f1 100644
--- src/hg/js/autocomplete.js
+++ src/hg/js/autocomplete.js
@@ -17,39 +17,39 @@
         {
             $.ajax({
                        url: "../cgi-bin/hgSuggest",
                        data: "db=" + getDb() + "&prefix=" + key,
                        // dataType: "json",  // XXXX this doesn't work under IE, so we retrieve as text and do an eval to force to an object.
                        trueSuccess: handleSuggest,
                        success: catchErrorOrDispatch,
                        error: function (request, status, errorThrown) {
                            if (typeof console != "undefined") {
                                console.dir(request);
                                console.log(status);
                            }
                            var msg = "ajax call failed";
                            if(status != "error")
                                msg = msg + "; error: " + status;
-                           showWarning(msg + "; statusText: " + request.statusText + "; responseText: " + request.responseText);
+                           warn(msg + "; statusText: " + request.statusText + "; responseText: " + request.responseText);
                        },
                        key: key,
                        cont: callback
                    });
         } else {
             callback(eval(suggestCache[key]));
         }
-        // showWarning(request.term);
+        // warn(request.term);
     }
 }
 
 function handleSuggest(response, status)
 {
     // We seem to get a lot of duplicate requests (especially the first letters of words),
     // so we keep a cache of the suggestions lists we've retreived.
     if(suggestCache != null)
         suggestCache[this.key] = response;
     this.cont(eval(response));
 }
 
 function lookupGene(db, gene)
 {
 // returns coordinates for gene (requires an exact match).