Guest User

Untitled

a guest
Jul 23rd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $( '.job_filters' ).on( 'click', '.reset', function () {
  2. var target = $( this ).closest( 'div.job_listings' );
  3. var form = $( this ).closest( 'form' );
  4.  
  5. form.find( ':input[name="search_keywords"], :input[name="search_location"], .job-manager-filter' ).not(':input[type="hidden"]').val( '' ).trigger( 'chosen:updated' );
  6. form.find( ':input[name^="search_categories"]' ).not(':input[type="hidden"]').val( 0 ).trigger( 'chosen:updated' );
  7. $( ':input[name="filter_job_type[]"]', form ).not(':input[type="hidden"]').attr( 'checked', 'checked' );
  8.  
  9. target.triggerHandler( 'reset' );
  10. target.triggerHandler( 'update_results', [ 1, false ] );
  11. job_manager_store_state( target, 1 );
  12.  
  13. return false;
  14. } );
Advertisement
Add Comment
Please, Sign In to add comment