summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 15:07:54 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 15:07:54 +0000
commit776a2217a6382dde669542ce222aea57dc025c32 (patch)
tree20e9adca9ef8ddaf57759553214c0b851e9697aa /misc
parentfef6ede20be00703b1a7549a35712feff98bc52f (diff)
downloadbrdo-776a2217a6382dde669542ce222aea57dc025c32.tar.gz
brdo-776a2217a6382dde669542ce222aea57dc025c32.tar.bz2
#47557, autocomplete broken by Prototype library, patch by yched.
Diffstat (limited to 'misc')
-rw-r--r--misc/autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index f680ef727..4d72005e1 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -198,7 +198,7 @@ jsAC.prototype.found = function (matches) {
var ul = document.createElement('ul');
var ac = this;
if (matches.length > 0) {
- for (i in matches) {
+ for (var i = 0; i < matches.length; i++) {
li = document.createElement('li');
div = document.createElement('div');
div.innerHTML = matches[i][1];
@@ -255,7 +255,7 @@ ACDB.prototype.receive = function(string, xmlhttp, acdb) {
}
// Split into array of key->value pairs
var matches = string.length > 0 ? string.split('||') : [];
- for (i in matches) {
+ for (var i = 0; i < matches.length; i++) {
matches[i] = matches[i].length > 0 ? matches[i].split('|') : [];
// Decode textfield pipes back to plain-text
matches[i][0] = eregReplace('&#124;', '|', matches[i][0]);