c5f80ca5df4c7e1161dbbb63bd631f81c7f0b64b tdreszer Wed Oct 5 09:41:57 2011 -0700 Cleaned up old 'newJQuery' dependencies. We are always running as newJQuery now. diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index ec6123f..50430bb 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -1,30 +1,30 @@ // support stuff for auto-complete using jquery.autocomplete.js // // requires ajax.js // requires utils.js var suggestCache; -function ajaxGet(getDb, cache, newJQuery) +function ajaxGet(getDb, cache) { // Returns jquery.autocomplete.js ajax_get function object // getDb should be a function which returns the relevant assembly (e.g. "hg18") // cache is an optional object used as a hash to cache responses from the server. suggestCache = cache; return function (request, callback) { - var key = newJQuery ? request.term : request; + var key = request.term; if(suggestCache == null || suggestCache[key] == null) { $.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")