From 2ffa18bf92cabac1c8104c223a9edfd34a816107 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Thu, 7 Apr 2011 04:27:45 +0000 Subject: [PATCH] Move to top of page when hash changes. --- mkdru.client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkdru.client.js b/mkdru.client.js index 11c4f69..0561a7e 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -198,6 +198,8 @@ mkdru.hashChange = function () { mkdru.hashFromState(); return; } + // return to top of page + window.scrollTo(0,0); // do we need to restart the search? var searchTrigger = false; // shallow copy of state so we can see what changed. -- 1.7.10.4