[js] Fixed scrolling to sections

This commit is contained in:
Alexander Zolotarev 2013-08-13 21:04:57 +03:00
parent 2a0e8f3600
commit 392ecaa3c7

View file

@ -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);
}