[tor-commits] [nyx/master] Don't move focus when faq items are clicked

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


commit 0ea9e157553e6a3dd8cd2c67c1de8f098ee6497c
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Aug 4 10:15:35 2017 -0700

    Don't move focus when faq items are clicked
    
    I want to set the anchor so users can share links, but moving the screen focus
    was jarring. Doing the former without the later.
---
 web/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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





More information about the tor-commits mailing list