Skip to content

Commit

Permalink
ajax select debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 22, 2023
1 parent a330127 commit 81506bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/javascripts/select2_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 81506bb

Please sign in to comment.