Add basic hash method

This commit is contained in:
Mu-An Chiou 2015-04-03 13:02:42 +08:00
parent 8c65460501
commit 2dc740a27f

View File

@ -218,6 +218,17 @@
numberOfSpots: gData.length
})
$('#theNumberofSpots').html(theNumberofSpots)
filterOnHash()
}
window.onhashchange = filterOnHash
function filterOnHash() {
if(window.location.hash) {
$('#tableFilter').val(window.location.hash.substring(1)).keyup()
$('.spotRow').first().click()
}
}
</script>
</body>