projects
/
mkdru-moved-to-drupal.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdbf888
)
Move to top of page when hash changes.
author
Jason Skomorowski
<jason@indexdata.com>
Thu, 7 Apr 2011 04:27:45 +0000
(
04:27
+0000)
committer
Jason Skomorowski
<jason@indexdata.com>
Thu, 7 Apr 2011 04:27:45 +0000
(
04:27
+0000)
mkdru.client.js
patch
|
blob
|
history
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.