mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
allow json in search response and abstract interactive loading from select2
This commit is contained in:
@@ -66,8 +66,10 @@ chill_main_admin_permissions:
|
||||
icons: [key]
|
||||
|
||||
chill_main_search:
|
||||
path: /{_locale}/search
|
||||
defaults: { _controller: ChillMainBundle:Search:search }
|
||||
path: /{_locale}/search.{_format}
|
||||
defaults: { _controller: ChillMainBundle:Search:search, _format: 'html' }
|
||||
requirements:
|
||||
_format: html|json
|
||||
|
||||
chill_main_advanced_search:
|
||||
path: /{_locale}/search/advanced/{name}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
|
||||
window.addEventListener('load', function (e) {
|
||||
var
|
||||
postalCodes = document.querySelectorAll('[data-postal-code]')
|
||||
postalCodes = document.querySelectorAll('[data-select-interactive-loading]')
|
||||
;
|
||||
|
||||
for (let i = 0; i < postalCodes.length; i++) {
|
Reference in New Issue
Block a user