X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..8d3bb1a5dcfdea9857d3c88c3751f09593e34dc8:/wp-includes/js/jquery/suggest.js diff --git a/wp-includes/js/jquery/suggest.js b/wp-includes/js/jquery/suggest.js index d0f4578b..97aab052 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,42 +15,29 @@ (function($) { $.suggest = function(input, options) { + var $input, $results, timeout, prevLength, cache, cacheSize; + + $input = $(input).attr("autocomplete", "off"); + $results = $("