[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Scroll to anchor
commit 35e0c91a83d448ed1ea8fdbb676c6335c0a4e506
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Thu Jul 27 21:24:58 2017 -0700
Scroll to anchor
By dynamically swapping taps we didn't necessarily scroll to the anchor
afterward.
---
web/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/index.html b/web/index.html
index 55b3263..646d7d2 100644
--- a/web/index.html
+++ b/web/index.html
@@ -197,6 +197,7 @@
$(".panes").children().each(function () {
if ($(this).find(anchor).length) {
$(".tabs").data("tabs").click(this.id);
+ document.getElementById(anchor.substr(1)).scrollIntoView();
}
});
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits