remove debug

This commit is contained in:
philipp 2023-07-26 13:11:17 +02:00
parent 48eb1b7dc2
commit 00aaa2dd86

View File

@ -9,7 +9,6 @@
document.getElementById('form').addEventListener('submit', function(e) { document.getElementById('form').addEventListener('submit', function(e) {
e.preventDefault(); e.preventDefault();
for(let optional_elem of ["datetime-arr", "distance_in_km", "comments", "logtype"]){ for(let optional_elem of ["datetime-arr", "distance_in_km", "comments", "logtype"]){
console.log(optional_elem);
let myInput = document.getElementById(optional_elem); let myInput = document.getElementById(optional_elem);
if (myInput.value === '') { if (myInput.value === '') {
myInput.removeAttribute('name'); myInput.removeAttribute('name');
@ -112,4 +111,4 @@ document.getElementById('form').addEventListener('submit', function(e) {
</select> </select>
<input type="submit" value="AUSFAHRT BEENDEN"/> <input type="submit" value="AUSFAHRT BEENDEN"/>
</form> </form>
{% endmacro home %} {% endmacro home %}