Forums › Forums › Search & Filter Pro › Post Type dropdown not retaining its value on Ajax reload
Tagged: post type
- This topic has 13 replies, 3 voices, and was last updated 9 years, 7 months ago by
Trevor.
-
Anonymous(Private) August 8, 2016 at 3:15 pm #53830
I have a select page with a Post Type dropdown, a “Topic” (tag) dropdown, and a search box. Whenever the page Ajax reloads (or even if it is hard-refreshed with a query) the Search box and Topic box retain their values, but the Post Type box displays “All Types”. The filtering still works, so this is really an aesthetic issue more than anything else, but I’m really confused as to why it’s happening at all. The only reasoning I can see is that Post Types seem to work differently than other tags or categories.
Any help would be appreciated!
Anonymous(Private) August 8, 2016 at 9:24 pm #53899Thanks, as always, for your great help.
Unfortunately, I’m not sure that’s it (for anyone working on the same problem down the road, he found a “jQuery(document).ready(function($)” that he thought may be preventing jQuery from working). If jQuery was being broken here, then none of the functions should be working, no?
I tried removing the entire troublesome javascript file in question, but the problem on the filter page persisted anyway.
Thanks again for your continued support!
Anonymous(Private) August 9, 2016 at 3:33 pm #53974No, and sadly we really can’t keep that file removed for too long right now, as we’re gearing up for launch. Thank you for your help, but to keep that file off is probably out of the cards. Since this is considered aesthetic and not site-breaking, we are just going to launch with the bug, and I’ll let you know when we have the ability to turn it off in Staging again.
Thanks for your continued help
Anonymous(Private) August 23, 2016 at 8:15 pm #55429Sorry this thread has been dead for so long. We’re now looking into this again, and we have a development site that would be more easy to alter for testing purposes.
I happened to notice that the problem isn’t entirely aesthetic as I used to believe. Using the “All Types” selection doesn’t actually reset that part of the query, and that box is still not holding it’s value.
Thanks for the ongoing support!
-
AuthorPosts