projects
/
mkdru-moved-to-drupal.org.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move to top of page when hash changes.
[mkdru-moved-to-drupal.org.git]
/
mkdru.client.js
diff --git
a/mkdru.client.js
b/mkdru.client.js
index
11c4f69
..
0561a7e
100644
(file)
--- 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.