dropdown on search page by initing dropdowns on ajax success

pull/5758/head
Eric Sherman 2020-01-09 20:58:38 -06:00 zatwierdzone przez Dan Braghis
rodzic aefb0f9506
commit f5f841ed59
4 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

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

Wyświetl plik

@ -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

Wyświetl plik

@ -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;