From 1ccdc7efe91daef89df18882e48dd62c897aaf85 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Thu, 1 Aug 2024 19:16:21 -0700 Subject: [PATCH] Add debugging --- app/javascript/controllers/autocompleter_controller.js | 2 +- app/javascript/controllers/geocode_controller.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/controllers/autocompleter_controller.js b/app/javascript/controllers/autocompleter_controller.js index 7c3cad6dd1..4100195cde 100644 --- a/app/javascript/controllers/autocompleter_controller.js +++ b/app/javascript/controllers/autocompleter_controller.js @@ -1547,7 +1547,7 @@ export default class extends Controller { } verbose(str) { - // console.log(str); + console.log(str); // document.getElementById("log"). // insertAdjacentText("beforeend", str + "
"); } diff --git a/app/javascript/controllers/geocode_controller.js b/app/javascript/controllers/geocode_controller.js index a71ef60356..6dcfc24b43 100644 --- a/app/javascript/controllers/geocode_controller.js +++ b/app/javascript/controllers/geocode_controller.js @@ -291,6 +291,7 @@ export default class extends Controller { // Convert from human readable and do a rough check if they make sense validateLatLngInputs(update = false) { + this.verbose("geocode:validateLatLngInputs") if (!this.hasLatInputTarget || !this.hasLngInputTarget || !this.latInputTarget.value || !this.lngInputTarget.value) return false @@ -429,7 +430,7 @@ export default class extends Controller { } verbose(str) { - // console.log(str); + console.log(str); // document.getElementById("log"). // insertAdjacentText("beforeend", str + "
"); }