Plugin Directory

Changeset 3169921


Ignore:
Timestamp:
10/16/2024 08:19:20 AM (18 months ago)
Author:
webmaster85
Message:

Fixed Analytics logging partial results.

Location:
instant-search
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • instant-search/tags/1.1.0/instant-search.php

    r3169106 r3169921  
    476476            <div class="is-box">
    477477                   <div class="is-title">
    478                       <h3>Analytics <span class="notify-badge">BETA</span>
     478                      <h3>Analytics <span class="notify-badge">NEW</span>
    479479                      <span data-target="analytics_settings" data-toggle="modal_settings">&#63;</span>
    480480                      </h3>
  • instant-search/tags/1.1.0/instant_search.js

    r3167106 r3169921  
    5959        }
    6060    }   
    61     $('#s, #s2').on('input', function() {
    62         var query = $('#s').val() || $('#s2').val();
    63         performSearch(query);
    64     });
     61    let debounceTimer;
     62        $('#s, #s2').on('input', function() {
     63            clearTimeout(debounceTimer);
     64            debounceTimer = setTimeout(() => {
     65                var query = $('#s').val() || $('#s2').val();
     66                performSearch(query);
     67            }, 300); // Debounce by 300ms
     68        });
    6569   if (searchMethod === 'overlay' || searchMethod === 'inline') {
    6670        $(document).on('click', function(e) {
  • instant-search/trunk/instant-search.php

    r3169106 r3169921  
    476476            <div class="is-box">
    477477                   <div class="is-title">
    478                       <h3>Analytics <span class="notify-badge">BETA</span>
     478                      <h3>Analytics <span class="notify-badge">NEW</span>
    479479                      <span data-target="analytics_settings" data-toggle="modal_settings">&#63;</span>
    480480                      </h3>
  • instant-search/trunk/instant_search.js

    r3167106 r3169921  
    5959        }
    6060    }   
    61     $('#s, #s2').on('input', function() {
    62         var query = $('#s').val() || $('#s2').val();
    63         performSearch(query);
    64     });
     61    let debounceTimer;
     62        $('#s, #s2').on('input', function() {
     63            clearTimeout(debounceTimer);
     64            debounceTimer = setTimeout(() => {
     65                var query = $('#s').val() || $('#s2').val();
     66                performSearch(query);
     67            }, 300); // Debounce by 300ms
     68        });
    6569   if (searchMethod === 'overlay' || searchMethod === 'inline') {
    6670        $(document).on('click', function(e) {
Note: See TracChangeset for help on using the changeset viewer.