Changeset 3169921
- Timestamp:
- 10/16/2024 08:19:20 AM (18 months ago)
- Location:
- instant-search
- Files:
-
- 4 edited
-
tags/1.1.0/instant-search.php (modified) (1 diff)
-
tags/1.1.0/instant_search.js (modified) (1 diff)
-
trunk/instant-search.php (modified) (1 diff)
-
trunk/instant_search.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
instant-search/tags/1.1.0/instant-search.php
r3169106 r3169921 476 476 <div class="is-box"> 477 477 <div class="is-title"> 478 <h3>Analytics <span class="notify-badge"> BETA</span>478 <h3>Analytics <span class="notify-badge">NEW</span> 479 479 <span data-target="analytics_settings" data-toggle="modal_settings">?</span> 480 480 </h3> -
instant-search/tags/1.1.0/instant_search.js
r3167106 r3169921 59 59 } 60 60 } 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 }); 65 69 if (searchMethod === 'overlay' || searchMethod === 'inline') { 66 70 $(document).on('click', function(e) { -
instant-search/trunk/instant-search.php
r3169106 r3169921 476 476 <div class="is-box"> 477 477 <div class="is-title"> 478 <h3>Analytics <span class="notify-badge"> BETA</span>478 <h3>Analytics <span class="notify-badge">NEW</span> 479 479 <span data-target="analytics_settings" data-toggle="modal_settings">?</span> 480 480 </h3> -
instant-search/trunk/instant_search.js
r3167106 r3169921 59 59 } 60 60 } 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 }); 65 69 if (searchMethod === 'overlay' || searchMethod === 'inline') { 66 70 $(document).on('click', function(e) {
Note: See TracChangeset
for help on using the changeset viewer.