Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fb09c1

Browse files
committed
Bind to #goto_pagetop clicks as well, to prevent overwriting hash with empty "#"
1 parent 0666744 commit 7fb09c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,7 @@ $(function () {
36793679
* Scrolls the page to the top if clicking the serverinfo bar
36803680
*/
36813681
$(function () {
3682-
$(document).delegate("#serverinfo", "click", function (event) {
3682+
$(document).delegate("#serverinfo, #goto_pagetop", "click", function (event) {
36833683
event.preventDefault();
36843684
$('html, body').animate({scrollTop: 0}, 'fast');
36853685
});

0 commit comments

Comments
 (0)