From 39b6d363edf7025e4ea7b1ac39fde6432028b243 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Thu, 25 Jul 2024 22:34:59 -0700 Subject: [PATCH] DRY up details --- .../controllers/autocompleter_controller.js | 22 ++++-- .../observations/form/_details.html.erb | 75 ++++++++----------- 2 files changed, 46 insertions(+), 51 deletions(-) diff --git a/app/javascript/controllers/autocompleter_controller.js b/app/javascript/controllers/autocompleter_controller.js index e487e09c1b..2f343f4981 100644 --- a/app/javascript/controllers/autocompleter_controller.js +++ b/app/javascript/controllers/autocompleter_controller.js @@ -189,14 +189,22 @@ export default class extends Controller { this.prepareInputElement(); } - // Swap out autocompleter type (and properties) - // Callable externally. Action may be called from a