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

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



commit 0f27f428afd5b3d3373c4a5b1fcc174cfe81f5e5
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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');
          }
       }
 



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