X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/959f97d8ecd5c1668103a3e41c795486b944bc68..11be15bd505d66a91e2c80062190b13e315a04a9:/wp-includes/js/jquery/suggest.js diff --git a/wp-includes/js/jquery/suggest.js b/wp-includes/js/jquery/suggest.js index d0f4578b..3060507f 100644 --- a/wp-includes/js/jquery/suggest.js +++ b/wp-includes/js/jquery/suggest.js @@ -1,11 +1,13 @@ /* - * jquery.suggest 1.1 - 2007-08-06 - * + * jquery.suggest 1.1b - 2007-08-06 + * Patched by Mark Jaquith with Alexander Dick's "multiple items" patch to allow for auto-suggesting of more than one tag before submitting + * See: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-7228 + * * Uses code and techniques from following libraries: * 1. http://www.dyve.net/jquery/?autocomplete - * 2. http://dev.jquery.com/browser/trunk/plugins/interface/iautocompleter.js + * 2. http://dev.jquery.com/browser/trunk/plugins/interface/iautocompleter.js * - * All the new stuff written by Peter Vulgaris (www.vulgarisoip.com) + * All the new stuff written by Peter Vulgaris (www.vulgarisoip.com) * Feel free to do whatever you want with this file * */ @@ -13,17 +15,18 @@ (function($) { $.suggest = function(input, options) { + var $input, $results, timeout, prevLength, cache, cacheSize; + + $input = $(input).attr("autocomplete", "off"); + $results = $("