]> git.agnieray.net Git - galette.git/commitdiff
Add FUI apiSettings cache parameter to choose_adh
authorGuillaume AGNIERAY <dev@agnieray.net>
Thu, 28 Sep 2023 18:00:27 +0000 (20:00 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 28 Sep 2023 18:37:38 +0000 (20:37 +0200)
refs #1707

galette/templates/default/elements/js/choose_adh.js.twig

index f2600b9811e5446cbdbc5e17d1e9e681d449b6ea..4e209565ba604285cc362f2801af3a4d2e1d20e0 100644 (file)
         $('{{ js_chosen_id }}').dropdown({
             match: 'text',
             apiSettings: {
+                {% if js_chosen_cache is defined and js_chosen_cache == false %}cache: false,{% endif %}
                 url: '{{ url_for("contributionMembers", {"page": 1, "search": "{query}"}) }}',
                 method: 'post',
                 beforeSend: function (settings) {