JAVASCRIPT   30
jQuery document ready function
Guest on 11th March 2023 12:12:18 AM


  1. jQuery(document).ready(function($) {
  2.         if ( ! MyListing.Explore || ! MyListing.Explore.isMobile ) {
  3.         return null;
  4.     }
  5.  
  6.     $('.ml-explore-search-filter').on('click', function() {
  7.         var current = MyListing.Explore.state.mobileTab;
  8.         if ( current == 'filters' ) {
  9.             MyListing.Explore.state.mobileTab = 'results';
  10.         } else {
  11.             MyListing.Explore.state.mobileTab = 'filters';
  12.         }
  13.     });
  14. });

Raw Paste

Login or Register to edit or fork this paste. It's free.