Skip Navigation

[Fermé] Issue with javascript to close filter pop up using AJAX for filters

This support ticket is created Il y a 1 année et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 1 année et 5 mois.

Assisté par: Luo Yang.

Auteur
Publications
#2613639

Hi, I hope you are having a great day.

I'm using JavaScript to change the class of the div for the filters.

( function( $ ) {

$(document).ready(function(){
$(".keebFilterR-open").click(function(){
$(".js-wpv-filter-form").toggleClass("activeR");
});
$(".keebFilterR-close").click(function(){
$(".js-wpv-filter-form").removeClass("activeR");
});
});
} )( jQuery )

To view the site click this link first lien caché
Then you can see the view and filters on lien caché

Use mobile view to view the page. On the bottom left there is an option to show filters. When filters are open you can click the close text at the top or the close button on the bottom to return to the results. This works fine, but if you click on an option like a checkbox, the close buttons do not work. Everything works fine with full page refresh to apply filters, but not with AJAX.

Any suggestions? Thank You for your time.

#2613773

Hello,

I have tried the URL you mentioned above, when switch to mobile device view, I don't see any option to show filters.

And since you are using AJAX feature, you need to setup your custom JS codes with Toolset JS events, see our document:
https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/

#2613911
Filters.jpg

I've checked on multiple devices and the option to open the filters is there on the bottom left in bright blue.

Going to try the linked solutions now.

#2614127

OK, I have updated this ticket as "Waiting for feedback" status, please update here if you still need assistance for it.

Le sujet ‘[Fermé] Issue with javascript to close filter pop up using AJAX for filters’ est fermé à de nouvelles réponses.