kopia lustrzana https://github.com/wagtail/wagtail
Changed Snippet Chooser AJAX delay from 50ms to 200ms, to remove laggy typing. (#5439)
50ms is the equivalent of about 200 words per minute, so typing slower than that meant that the javascript would send an AJAX request between every single keystroke. This change makes the javascript wait for 200ms between keystrokes, which lets you finish typing the word you're looking for before it sends an AJAX request.pull/5544/head
rodzic
7db44c71b3
commit
ef4b37cf5d
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue