dropdown on search page by initing dropdowns on ajax success

This commit is contained in:
Eric Sherman 2020-01-09 20:58:38 -06:00 committed by Dan Braghis
parent aefb0f9506
commit f5f841ed59
4 changed files with 5 additions and 1 deletions

View file

@ -35,6 +35,7 @@ Changelog
* Fix: Fixed order of URLs in project template so that static / media URLs are not blocked (Nick Smith)
* Fix: Added verbose_name_plural for form submission model (Janneke Janssen)
* Fix: Prevent `update_index` failures and incorrect front-end rendering on blank `TableBlock` (Carlo Ascani)
* Fix: Dropdown initialisation on the search page after AJAX call (Eric Sherman)
2.7.1 (08.01.2020)

View file

@ -427,6 +427,7 @@ Contributors
* Benedikt Willi
* Johannes Vogel
* Sam Costigan
* Eric Sherman
Translators
===========

View file

@ -60,6 +60,7 @@ Bug fixes
* Fixed order of URLs in project template so that static / media URLs are not blocked (Nick Smith)
* Added verbose_name_plural for form submission model (Janneke Janssen)
* Prevent ``update_index`` failures and incorrect front-end rendering on blank ``TableBlock`` (Carlo Ascani)
* Dropdown initialisation on the search page after AJAX call (Eric Sherman)
Upgrade considerations

View file

@ -264,6 +264,7 @@ $(function() {
}
},
complete: function() {
wagtail.ui.initDropDowns();
$inputContainer.removeClass(workingClasses);
}
});
@ -542,7 +543,7 @@ wagtail = (function(document, window, wagtail) {
}
$(document).ready(initDropDowns);
wagtail.ui.initDropDowns = initDropDowns;
wagtail.ui.DropDownController = DropDownController;
return wagtail;