From 81506bb1c063e8cb6a5a52f0a4f7bdddf542e56c Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Wed, 22 Nov 2023 12:20:47 +0100 Subject: [PATCH] ajax select debugging --- assets/javascripts/select2_helpers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/javascripts/select2_helpers.js b/assets/javascripts/select2_helpers.js index f52c04c9..738dd300 100644 --- a/assets/javascripts/select2_helpers.js +++ b/assets/javascripts/select2_helpers.js @@ -194,6 +194,11 @@ function addDataSourceOptions(target, options) { dataType: 'json', delay: SELECT2_DELAY, data: function (params) { + if (params === undefined) { + console.log('missing params for ajax call'); + console.log(target); + console.log(options); + } return { q: params.term }; }, processResults: function (data) {