From 57f8ee0b09ecf6b83e4e1a75053fe657a8d427b9 Mon Sep 17 00:00:00 2001 From: h8h Date: Sat, 11 Oct 2014 21:52:00 +0200 Subject: [PATCH] Smoothly scroll to alias edit form. --- management/templates/aliases.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/management/templates/aliases.html b/management/templates/aliases.html index 6549dae6..69bc62c4 100644 --- a/management/templates/aliases.html +++ b/management/templates/aliases.html @@ -58,7 +58,7 @@
- + @@ -189,4 +189,10 @@ function aliases_remove(elem) { }); }); } + +function scroll_top() { + $('html, body').animate({ + scrollTop: $("#panel_aliases").offset().top + }, 1000); +}