diff --git a/index.php b/index.php index 53370a9..b9d9c75 100644 --- a/index.php +++ b/index.php @@ -627,15 +627,24 @@ $(document).ready(function () { $('#domsearch').addClear({ onClear: function() { $('#MasterZones').jtable('load'); } }); - $('#domsearch').on('input', function (e) { - e.preventDefault(); + + function searchDoms() { $('#MasterZones').jtable('load', { domsearch: $('#domsearch').val() }); $('#SlaveZones').jtable('load', { domsearch: $('#domsearch').val() }); + } + + stimer = 0; + + $('#domsearch').on('input', function (e) { + e.preventDefault(); + clearTimeout(stimer); + stimer = setTimeout(searchDoms, 400); }); + $('#Users').hide(); $('#useradmin').click(function () {