summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-28 13:37:29 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-28 13:37:29 +0000
commit08b1bb73f770888b39ac862495622629af65de97 (patch)
treeca9064101b16922fca94a6db8ddf5cc7cb8fec56 /misc
parent20825cde527eb4b77a016376b8dd8c349b056980 (diff)
downloadbrdo-08b1bb73f770888b39ac862495622629af65de97.tar.gz
brdo-08b1bb73f770888b39ac862495622629af65de97.tar.bz2
- Patch #201269 by Xano; synonym collapsing in core.
Diffstat (limited to 'misc')
-rw-r--r--misc/autocomplete.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index aed6628b3..706a0cf2f 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -255,6 +255,12 @@ Drupal.ACDB.prototype.search = function (searchString) {
var db = this;
this.searchString = searchString;
+ // See if this string needs to be searched for anyway.
+ searchString = searchString.replace(/^\s+|\s+$/, '');
+ if (searchString.charAt(searchString.length - 1) == ',') {
+ return;
+ }
+
// See if this key has been searched for before.
if (this.cache[searchString]) {
return this.owner.found(this.cache[searchString]);