X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fjquery.autocomplete.js;h=4e211a11ec3c8fa0909c94f711aa21c262daa667;hb=aab2ffddfc8597dfce114b18c737b791e949b6ea;hp=6cf3cb056f3626c37a2c7d10bae84278a4a2f1ce;hpb=2f8bacc215bab9d9e3401e73004574cfb0eb4540;p=platal.git diff --git a/htdocs/javascript/jquery.autocomplete.js b/htdocs/javascript/jquery.autocomplete.js index 6cf3cb0..4e211a1 100644 --- a/htdocs/javascript/jquery.autocomplete.js +++ b/htdocs/javascript/jquery.autocomplete.js @@ -359,7 +359,7 @@ function() { $(this).removeClass("ac_over"); } - ).click(function(e) { + ).click(function(e) { e.preventDefault(); e.stopPropagation(); selectItem(this) @@ -394,7 +394,7 @@ }; function makeUrl(q) { - var sep = options.url.indexOf('?') == -1 ? '?' : '&'; + var sep = options.url.indexOf('?') == -1 ? '?' : '&'; var url = options.url + sep + "q=" + encodeURI(q); for (var i in options.extraParams) { url += "&" + i + "=" + encodeURI(options.extraParams[i]); @@ -546,7 +546,7 @@ autoFill: false, width: 0 }, $.fn.autocomplete.defaults, options); - + options.width = parseInt(options.width, 10); return this.each(function() {