Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( '.job_filters' ).on( 'click', '.reset', function () {
- var target = $( this ).closest( 'div.job_listings' );
- var form = $( this ).closest( 'form' );
- form.find( ':input[name="search_keywords"], :input[name="search_location"], .job-manager-filter' ).not(':input[type="hidden"]').val( '' ).trigger( 'chosen:updated' );
- form.find( ':input[name^="search_categories"]' ).not(':input[type="hidden"]').val( 0 ).trigger( 'chosen:updated' );
- $( ':input[name="filter_job_type[]"]', form ).not(':input[type="hidden"]').attr( 'checked', 'checked' );
- target.triggerHandler( 'reset' );
- target.triggerHandler( 'update_results', [ 1, false ] );
- job_manager_store_state( target, 1 );
- return false;
- } );
Advertisement
Add Comment
Please, Sign In to add comment