Scroll the page to the top if clicking the serverinfo bar

This commit is contained in:
J.M 2012-12-05 17:44:40 +01:00
parent 23c428dbca
commit f525acf3d7

View File

@ -3669,6 +3669,18 @@ $(function () {
}
});
/**
* Scrolls the page to the top if clicking the serverinfo bar
*/
$(function () {
$(document).delegate("#serverinfo", "click", function () {
$('html, body').animate({scrollTop: 0}, 'fast');
});
$(document).delegate("#serverinfo > *", "click", function (e) {
e.stopPropagation();
});
});
/**
* Watches checkboxes in a form to set the checkall box accordingly
*/