#47557, autocomplete broken by Prototype library, patch by yched.
							parent
							
								
									fef6ede20b
								
							
						
					
					
						commit
						776a2217a6
					
				| 
						 | 
					@ -198,7 +198,7 @@ jsAC.prototype.found = function (matches) {
 | 
				
			||||||
  var ul = document.createElement('ul');
 | 
					  var ul = document.createElement('ul');
 | 
				
			||||||
  var ac = this;
 | 
					  var ac = this;
 | 
				
			||||||
  if (matches.length > 0) {
 | 
					  if (matches.length > 0) {
 | 
				
			||||||
    for (i in matches) {
 | 
					    for (var i = 0; i < matches.length; i++) {
 | 
				
			||||||
      li = document.createElement('li');
 | 
					      li = document.createElement('li');
 | 
				
			||||||
      div = document.createElement('div');
 | 
					      div = document.createElement('div');
 | 
				
			||||||
      div.innerHTML = matches[i][1];
 | 
					      div.innerHTML = matches[i][1];
 | 
				
			||||||
| 
						 | 
					@ -255,7 +255,7 @@ ACDB.prototype.receive = function(string, xmlhttp, acdb) {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  // Split into array of key->value pairs
 | 
					  // Split into array of key->value pairs
 | 
				
			||||||
  var matches = string.length > 0 ? string.split('||') : [];
 | 
					  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('|') : [];
 | 
					    matches[i] = matches[i].length > 0 ? matches[i].split('|') : [];
 | 
				
			||||||
    // Decode textfield pipes back to plain-text
 | 
					    // Decode textfield pipes back to plain-text
 | 
				
			||||||
    matches[i][0] = eregReplace('|', '|', matches[i][0]);
 | 
					    matches[i][0] = eregReplace('|', '|', matches[i][0]);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue