Skip to content
Snippets Groups Projects
Commit 776a2217 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#47557, autocomplete broken by Prototype library, patch by yched.

parent fef6ede2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment