From 7fb09c1ceb0daafe26e1f155b8a831778dd21f73 Mon Sep 17 00:00:00 2001 From: "J.M" Date: Sat, 15 Dec 2012 19:27:29 +0100 Subject: [PATCH] Bind to #goto_pagetop clicks as well, to prevent overwriting hash with empty "#" --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 540f6595bb..f3a0c1782c 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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'); });