Skip Navigation

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

This support ticket is created vor 1 Jahr, 5 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 1 Jahr, 5 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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 versteckter Link
Then you can see the view and filters on versteckter Link

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.

Das Thema „[Geschlossen] Issue with javascript to close filter pop up using AJAX for filters“ ist für neue Antworten geschlossen.