diff --git a/index.html b/index.html index f2ef0cd..392eee9 100644 --- a/index.html +++ b/index.html @@ -219,17 +219,16 @@ }) $('#theNumberofSpots').html(theNumberofSpots) - filterOnHash() - } - - window.onhashchange = filterOnHash - - function filterOnHash() { if(window.location.hash) { $('#tableFilter').val(window.location.hash.substring(1)).keyup() $('.spotRow').first().click() } } + + $(document).on('keyup', '#tableFilter', function() { + window.location.hash = $(this).val() + $('.spotRow').first().click() + })