|  | @@ -83,12 +83,11 @@ function loadform(form, url) {
 | 
											
												
													
														|  |  	.catch(() => {});
 |  |  	.catch(() => {});
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -// Replace HTML element contents with the contents of a map
 |  | 
 | 
											
												
													
														|  | 
 |  | +// Replace the contents of selected HTML elements based on a map with selectors
 | 
											
												
													
														|  |  function fillin(map,html)
 |  |  function fillin(map,html)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |      for (const [key,val] of map) {
 |  |      for (const [key,val] of map) {
 | 
											
												
													
														|  | -	var e = document.getElementById(key);
 |  | 
 | 
											
												
													
														|  | -	if (e) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +	for (var e of document.querySelectorAll(key)) {
 | 
											
												
													
														|  |  	    if (html)
 |  |  	    if (html)
 | 
											
												
													
														|  |  		e.innerHTML = val;
 |  |  		e.innerHTML = val;
 | 
											
												
													
														|  |  	    else
 |  |  	    else
 |