From 416ba51e22f70496f94845f5c45723563fd41d5a Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 5 Oct 2021 00:39:22 +1100 Subject: [PATCH] Add auto-fill option to select2 inputs on API forms - WIll fill input if a single result is returned --- InvenTree/build/templates/build/detail.html | 2 +- InvenTree/templates/js/translated/build.js | 10 ++++-- InvenTree/templates/js/translated/forms.js | 32 ++++++++++++++++++- .../js/translated/model_renderers.js | 6 +++- 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index 421cac059c..cfe5e548c0 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -170,7 +170,7 @@ {% if build.active %}