Skip Navigation

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

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.

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)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 1 year, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#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 hidden link
Then you can see the view and filters on hidden 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.

The topic ‘[Closed] Issue with javascript to close filter pop up using AJAX for filters’ is closed to new replies.