[tor-commits] [nyx/master] Set anchor when expanding FAQ entires

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


commit 0f27f428afd5b3d3373c4a5b1fcc174cfe81f5e5
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Aug 1 02:14:28 2017 -0700

    Set anchor when expanding FAQ entires
    
    Filling the anchor whenever a FAQ is clicked. This way folks can easily share
    links.
---
 web/index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/index.html b/web/index.html
index 8cf0d11..0b648d0 100644
--- a/web/index.html
+++ b/web/index.html
@@ -370,6 +370,7 @@ sudo python setup.py install</pre><br /></li>
 
           answer.animate({'height': newHeight}, 100);
           answer.addClass('open');
+          window.location.hash = "#" + answer.parent().attr('id');
          }
       }
 





More information about the tor-commits mailing list