Skip to content

Commit 3a535a4

Browse files
committed
docs: fix bug with unknown anchors
Change-Id: I70f978ffd2248973a43ff1fe1dec2b0ac78cb63b
1 parent 0d881cb commit 3a535a4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/html/about/versions/jelly-bean.jd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ function revealSection(hashy) {
4242
link = $("#version-tabs a[href$="+sectionId+"]");
4343
link.parent().addClass("selected");
4444
link.parent().siblings().removeClass("selected");
45-
$(".version-section").hide();
46-
$(link.attr("href")).show();
45+
46+
sectionDiv = $(".version-section"+link.attr("href"));
47+
if (sectionDiv.length) {
48+
$(".version-section").hide();
49+
sectionDiv.show();
50+
}
51+
4752
$('html, body').animate({
4853
scrollTop: $(hashy).offset().top
4954
}, 100);

0 commit comments

Comments
 (0)