From 392ecaa3c73bc02a09c654966eca13c079cbea11 Mon Sep 17 00:00:00 2001 From: Alexander Zolotarev Date: Tue, 13 Aug 2013 21:04:57 +0300 Subject: [PATCH] [js] Fixed scrolling to sections --- data/js/article.js | 1 + 1 file changed, 1 insertion(+) diff --git a/data/js/article.js b/data/js/article.js index 3fd2e56..bf185e9 100644 --- a/data/js/article.js +++ b/data/js/article.js @@ -46,6 +46,7 @@ function openSection(section) { if (contentSection) { contentSection.className += " openSection"; } + location.replace('#' + section.id); window.history.replaceState({},"", window.location.href.split("#")[0] + '#' + section.id); }