diff --git a/CHANGELOG.txt b/CHANGELOG.txt index fd47a48a31..e4ec8d934f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -15,6 +15,7 @@ Changelog * Revise tests to ensure all pass in Django 3.0 (Matt Westcott) * Add ability for users to change their own name via the account settings page (Kevin Howbrook) * Add ability to insert telephone numbers as links in Draftail (rich text) fields (Mikael Engström and Liam Brenner) + * Increase delay before search in the snippet chooser, to prevent redundant search request round trips (Robert Rollins) * Fix: Added line breaks to long filenames on multiple image / document uploader (Kevin Howbrook) * Fix: Added https support for Scribd oEmbed provider (Rodrigo) * Fix: Changed StreamField group labels color so labels are visible (Catherine Farman) diff --git a/docs/releases/2.7.rst b/docs/releases/2.7.rst index 13c6189e4c..c2991cb217 100644 --- a/docs/releases/2.7.rst +++ b/docs/releases/2.7.rst @@ -34,7 +34,7 @@ Other features * Revise tests to ensure all pass in Django 3.0 (Matt Westcott) * Add ability for users to change their own name via the account settings page (Kevin Howbrook) * Add ability to insert telephone numbers as links in Draftail (rich text) fields (Mikael Engström and Liam Brenner) - + * Increase delay before search in the snippet chooser, to prevent redundant search request round trips (Robert Rollins) Bug fixes diff --git a/wagtail/snippets/static_src/wagtailsnippets/js/snippet-chooser-modal.js b/wagtail/snippets/static_src/wagtailsnippets/js/snippet-chooser-modal.js index e4f6e811be..9e6828f0b3 100644 --- a/wagtail/snippets/static_src/wagtailsnippets/js/snippet-chooser-modal.js +++ b/wagtail/snippets/static_src/wagtailsnippets/js/snippet-chooser-modal.js @@ -49,7 +49,7 @@ SNIPPET_CHOOSER_MODAL_ONLOAD_HANDLERS = { $('#id_q').on('input', function() { clearTimeout($.data(this, 'timer')); - var wait = setTimeout(search, 50); + var wait = setTimeout(search, 200); $(this).data('timer', wait); });