From 720cf766f2370fc7778830de7a19bfca8d22592c Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 8 Aug 2021 18:30:07 +0200 Subject: [PATCH] [DOK autofill fix] Set option create to true so that entries not found in the DOK list, can be manually added. Fixed #1120 --- application/views/interface_assets/footer.php | 2 +- assets/js/sections/qso.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index c8195c33..8c0c1cbb 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1323,7 +1323,7 @@ $(document).ready(function(){ labelField: 'name', searchField: 'name', options: [], - create: false, + create: true, load: function(query, callback) { if (!query) return callback(); // Only trigger if 3 or more characters are entered $.ajax({ diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index c92a103f..5c7083d8 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -79,7 +79,7 @@ $( document ).ready(function() { labelField: 'name', searchField: 'name', options: [], - create: false, + create: true, load: function(query, callback) { if (!query) return callback(); // Only trigger if at least 1 character is entered $.ajax({