projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d51dd25
)
Fix for Firefox poorly scrolling to anchors
author
Alexander Ebert
<ebert@woltlab.com>
Tue, 1 Apr 2014 21:14:47 +0000
(23:14 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Tue, 1 Apr 2014 21:14:47 +0000
(23:14 +0200)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index fb1a4a7828ed851b9afd8e657c233ac76cbc0ad3..88ab6dce99efa2353a2e0b8fce1b82e3794ad237 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-3822,6
+3822,14
@@
WCF.TabMenu = {
if (!this._selectErroneousTab()) {
this.selectTabs();
}
+
+ if ($.browser.mozilla && location.hash) {
+ var $target = $(location.hash);
+ if ($target.length && $target.hasClass('tabMenuContent')) {
+ var $offset = $target.offset();
+ window.scrollTo($offset.left, $offset.top);
+ }
+ }
}
this._didInit = true;