From 64220292f11f352556d495534378b27d22c90053 Mon Sep 17 00:00:00 2001 From: h8h Date: Sat, 11 Oct 2014 19:56:36 +0200 Subject: [PATCH 1/2] Jump to the panel_aliases anchor (top) to directly edit the selected alias --- management/templates/aliases.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/templates/aliases.html b/management/templates/aliases.html index 2f01dfd9..6549dae6 100644 --- a/management/templates/aliases.html +++ b/management/templates/aliases.html @@ -58,7 +58,7 @@
- + @@ -189,4 +189,4 @@ function aliases_remove(elem) { }); }); } - \ No newline at end of file + From 57f8ee0b09ecf6b83e4e1a75053fe657a8d427b9 Mon Sep 17 00:00:00 2001 From: h8h Date: Sat, 11 Oct 2014 21:52:00 +0200 Subject: [PATCH 2/2] 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); +}