From 71229491f7d31723e52c8d2afe4adcd2a1626ae9 Mon Sep 17 00:00:00 2001 From: Johan Le Baut Date: Thu, 27 Jan 2022 23:59:53 +0100 Subject: [PATCH] remove logging --- templates/landing_form.html | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/templates/landing_form.html b/templates/landing_form.html index e6b0c1a..04699ea 100644 --- a/templates/landing_form.html +++ b/templates/landing_form.html @@ -106,13 +106,9 @@ } } if (communes.length == 1) { - codeInsee=communes[0].codeInsee - console.log("fillCommunes show voieForm") + codeInsee=communes[0].codeInsee; $('#voieForm').collapse('show'); - console.log("fillCommunes shown voieForm") } else { - console.log("fillCommunes hide voieForm") - console.log("voieInput to empty") $('#voieInput').val(''); $('#voieForm').collapse('hide'); } @@ -143,11 +139,9 @@ voies[i].libelle[0] + "'>"); } if (voies.length == 1) { - console.log("fillVoies show btnTestAdresse") $('#btnTestAdresse').collapse('show'); voie=voies[0].libelle[0] } else { - console.log("fillVoies hide btnTestAdresse") $('#btnTestAdresse').collapse('hide'); } } @@ -155,26 +149,20 @@ }); } $('#methodAddress').on('show.bs.collapse', function () { - console.log("SHOW methodAddress") $('#communeInput').trigger('input') $('#communeInput').trigger('keyup') }); $('#voieForm').on('show.bs.collapse', function () { - console.log("SHOW voieForm") - $('#voieInput').trigger('input') $('#voieInput').trigger('keyup') }); $('#communeInput').on('keyup', function () { - console.log("communes keyup, call fillCommunes") fillCommunes($(this).val()); }); $('#communeInput').on('input', function() { - console.log("val ", $(this).val()) if ($(this).val() === '') { - console.log("on empty input hide voieForm") $('#voieForm').collapse('hide'); } }); @@ -182,9 +170,7 @@ fillVoies(codeInsee,$(this).val()); }); $('#voieInput').on('input', function () { - console.log("voie val ", $(this).val()) if ($(this).val() === '') { - console.log("on empty input hide btnTestAdresse") $('#btnTestAdresse').collapse('hide'); } });