Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 2, 2024
1 parent 428c3bb commit 1ccdc7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/controllers/autocompleter_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ export default class extends Controller {
}

verbose(str) {
// console.log(str);
console.log(str);
// document.getElementById("log").
// insertAdjacentText("beforeend", str + "<br/>");
}
Expand Down
3 changes: 2 additions & 1 deletion app/javascript/controllers/geocode_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -429,7 +430,7 @@ export default class extends Controller {
}

verbose(str) {
// console.log(str);
console.log(str);
// document.getElementById("log").
// insertAdjacentText("beforeend", str + "<br/>");
}
Expand Down

0 comments on commit 1ccdc7e

Please sign in to comment.