fixed page not scrolling to top when navigating via hashtag.

This commit is contained in:
Kerrick
2011-07-20 10:30:05 -07:00
parent c26e63154e
commit 2495dd2fd0
+1
View File
@@ -28,6 +28,7 @@ function navigate(navTo, speed, navFrom) {
$(document).ready(function() {
$('div.article').hide(0);
if(window.location.hash.substr(1)) {
window.setTimeout(window.scrollTo, 850, 0, 0);
navigate(window.location.hash.substr(1),400);
} else {
window.location.hash = showOnLoad;