From 05a0695920ee32bd7afe9124a4565e3469a12a79 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 13 Jun 2010 05:31:02 +0000 Subject: - Patch #172755 by c960657, klausi: autocomplete triggered when switching fields, 'undefined' written to field. --- misc/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 506b9cf18..ffbbe1f00 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -115,7 +115,7 @@ Drupal.jsAC.prototype.selectDown = function () { if (this.selected && this.selected.nextSibling) { this.highlight(this.selected.nextSibling); } - else { + else if (this.popup) { var lis = $('li', this.popup); if (lis.size() > 0) { this.highlight(lis.get(0)); -- cgit v1.2.3