Bind to #goto_pagetop clicks as well, to prevent overwriting hash with empty "#"
This commit is contained in:
parent
066674497e
commit
7fb09c1ceb
@ -3679,7 +3679,7 @@ $(function () {
|
||||
* Scrolls the page to the top if clicking the serverinfo bar
|
||||
*/
|
||||
$(function () {
|
||||
$(document).delegate("#serverinfo", "click", function (event) {
|
||||
$(document).delegate("#serverinfo, #goto_pagetop", "click", function (event) {
|
||||
event.preventDefault();
|
||||
$('html, body').animate({scrollTop: 0}, 'fast');
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user