[tor-commits] [nyx/master] Fix anchors to alternate tabs

atagar at torproject.org atagar at torproject.org
Sat Aug 5 01:18:26 UTC 2017


commit 6cffcd2c8caf48946936b6f40f5adbb547a959ce
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Aug 4 10:42:36 2017 -0700

    Fix anchors to alternate tabs
    
    Oops, renaming our page classes broke anchors to those pages.
---
 web/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/index.html b/web/index.html
index 82c1b3d..be2286d 100644
--- a/web/index.html
+++ b/web/index.html
@@ -431,9 +431,9 @@ sudo python setup.py install</pre><br /></li>
       if (anchor) {
         $(".page").each(function () {
           if ($(this).find(anchor).length) {
-            $(".tabs").data("tabs").click(this.id);
+            $(".tabs").data("tabs").click(this.id.split("_section")[0]);
 
-            if (this.id == "faq" && anchor != "#faq") {
+            if (this.id == "faq_section" && anchor != "#faq") {
               toggleFaq($(anchor + " > .answer"));
             }
 





More information about the tor-commits mailing list