[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6cffcd2c8caf48946936b6f40f5adbb547a959ce
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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"));
             }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits