So, I have added the Select2 style to all Select Boxes in this page lien caché, but when I select a "Regione" option the al Select Boxes style change to normal Select style...
In the search form, I have added a slide to select the ages range, when I select a "Regione" option the slide crash...
Also, the slide is generated by jQuery, and in smartphone and tablet I cannot select the age range, the slider input doesn't work with the finger... And if I do a search by the age range, and after I click to reset button, the range values aren't reset...
Can you help me on this?
About the favorites, I'm trying these days to do the tests.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Francesco
Your View has an option to update results with ajax whenever any of the filters are changed, and that means that the filters themselves get replaced in the DOM, not just the View results.
So any changes you made to those DOM elements (e.g. initialising select2 library on select elements) are lost.
You need to add those changes back.
Views provides several custom JS events you can hook into in such circumstances, e.g. when filters are updated via ajax, or ajax pagination completes etc.
You can insert placeholder code to use them in the custom JS section of the Search and Pagination editor, there is a button "Front-end events", and the screenshot shows the event you would use.