mirror of
				https://github.com/Theodor-Springmann-Stiftung/musenalm.git
				synced 2025-10-30 01:35:32 +00:00 
			
		
		
		
	Basis Suche Inhalte
This commit is contained in:
		| @@ -14,4 +14,38 @@ | ||||
| 			} | ||||
| 		} | ||||
| 	}); | ||||
|  | ||||
| 	const form = document.getElementById("simplesearchform"); | ||||
| 	let submitBtn = null; | ||||
| 	if (form) { | ||||
| 		submitBtn = form.querySelector("#submitbutton"); | ||||
| 	} | ||||
|  | ||||
| 	function checkValidity(f, btn) { | ||||
| 		if (f.checkValidity()) { | ||||
| 			btn.disabled = false; | ||||
| 		} else { | ||||
| 			btn.disabled = true; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (form && submitBtn) { | ||||
| 		checkValidity(form, submitBtn); | ||||
| 		form.addEventListener("input", (event) => { | ||||
| 			checkValidity(form, submitBtn); | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	const lookupform = document.getElementById("lookupform"); | ||||
| 	let lookupsubmitBtn = null; | ||||
| 	if (lookupform) { | ||||
| 		lookupsubmitBtn = lookupform.querySelector("#submitbutton"); | ||||
| 	} | ||||
|  | ||||
| 	if (lookupform && lookupsubmitBtn) { | ||||
| 		checkValidity(lookupform, lookupsubmitBtn); | ||||
| 		lookupform.addEventListener("input", (event) => { | ||||
| 			checkValidity(lookupform, lookupsubmitBtn); | ||||
| 		}); | ||||
| 	} | ||||
| </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens