lindsay macvean
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchHey Mike,
bump. ??
Warmest Regards,
LindsayForum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchHey Mike,
Any luck on this. Just let me know in a few words if my patch has any likelihood of being accepted or if there are other considerations that exclude it from a merge, and perhaps there is something I can do.
Warmest regards,
LindsayForum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchOk I have submitted a pull request. Please let me know if I have missed the point of anything, or need to make any bug fixes.
Forum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchI have forked and am writing a patch to set up the behaviour I need,
https://github.com/lindsaymacvean/WP-Job-Manager/commits/masterHopefully you can do an interactive rebase on my commits and they will be durable enough to pull back into the master branch.
I have two questions:
Whats the purpose of updated_results event (it doesn’t seem to trigger anything)?
Is there a basic assumption that there is only one ajax form per page?
At the moment I am stuck on a bug when I click the back button it doesnt refresh the results with the correct result in the history. I will continue to work on it.
Forum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchOk I understand.
In the ajax-filters.js there is an event listener for the update_results event.
When I write a custom trigger like so
someElement.trigger('update_results', [page, append, loading_previous]);
Where:
page is some integer value setting current page of results
append is a boolean setting whether to keep current results
loading_previous is optional value (if append is set to true) and decided whether to put the new results under or above the original results.Forum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchhttps://api.jquery.com/trigger/
there are some extra parameters in an array [1, false] passed to the trigger function.
Forum: Plugins
In reply to: [Clean Login] How to contribute to pluginthankyou. I look forward to hearing from you.
L
Forum: Plugins
In reply to: [WP Job Manager] HTML5 Pushstate for query Strings in searchWe hardcode the state variable https://github.com/Automattic/WP-Job-Manager/blob/52737168efe0a14b7e3dfd1169ad563de1f8659c/assets/js/ajax-filters.js#L265 I don’t see any benefit to changing it?
I want to track the searches using google analytics so need the specific query strings in the url before I call the analytics state and add a page view.
I also want users to be able to share specific searches and other people will see the same thing when they click on the link.
3 you can do. update_results event or ajaxcomplete.
What are the extra paramaters that I am passing to update_results
[1, false]
is there any documentation on this that I could save for reference later?Can I make these patches myself and submit pull requests (whats the correct repository if I want to do this)?
Forum: Plugins
In reply to: [WP Job Manager] Simple Paid Listing – Stripe SubscriptionResolved
Forum: Plugins
In reply to: [WP Job Manager] Simple Paid Listing – Stripe SubscriptionThankyou
Forum: Plugins
In reply to: [Clean Login] Redirect after loginHi @alberto and @jjnetwork
I have implemented this feature and submitted a pull request
I hope that @alberto can accept that as it will allow me to take advantage of future upgrades.https://github.com/wp-plugins/clean-login/pull/1
L
Forum: Plugins
In reply to: [Clean Login] Have users logged in after registeringI added this feature and submitted a pull request.
Forum: Plugins
In reply to: [WP Job Manager] trying to make a select all or select none option on formI figured it out
<li> <a href="" id="checkbox_all">all</a> / <a href="" id="checkbox_none">none</a> <script> jQuery('#checkbox_all').click( function (event) { console.log(event); event.preventDefault(); jQuery('.checkbox__custom input').prop( "checked", true); jQuery('.job_filters').trigger('update_results', [1, false]); } ); jQuery('#checkbox_none').click( function (event) { console.log(event); event.preventDefault(); jQuery('.checkbox__custom input').prop( "checked", false); jQuery('.job_filters').trigger('update_results', [1, false]); } ); </script> </li>
Forum: Plugins
In reply to: [WP Job Manager] trying to make a select all or select none option on formThankyou that worked great.
Now I have a problem that it is going really slow. I think it must be submitting the form over and over again for every category box that is check or unchecked (I cant tell because everytime I test it it crashes my computer). I really need to hook directly into the ajax method and submit the form and handle the response just once.