Commit 54d01746 authored by Joshua Tauberer's avatar Joshua Tauberer

Merge pull request #233 from h8h/patch-3

Jump to the panel_aliases anchor (top) to directly edit the selected alias
parents 82851d6d 57f8ee0b
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<table> <table>
<tr id="alias-template"> <tr id="alias-template">
<td class='actions'> <td class='actions'>
<a href="#" onclick="aliases_edit(this); return false;" class='edit' title="Edit Alias"> <a href="#" onclick="aliases_edit(this); scroll_top(); return false;" class='edit' title="Edit Alias">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-pencil"></span>
</a> </a>
<a href="#" onclick="aliases_remove(this); return false;" class='remove' title="Remove Alias"> <a href="#" onclick="aliases_remove(this); return false;" class='remove' title="Remove Alias">
...@@ -189,4 +189,10 @@ function aliases_remove(elem) { ...@@ -189,4 +189,10 @@ function aliases_remove(elem) {
}); });
}); });
} }
</script>
\ No newline at end of file function scroll_top() {
$('html, body').animate({
scrollTop: $("#panel_aliases").offset().top
}, 1000);
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment