diff options
| -rw-r--r-- | docs/html/about/versions/jelly-bean.jd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/html/about/versions/jelly-bean.jd b/docs/html/about/versions/jelly-bean.jd index 1e21e0ffa026..26801001133d 100644 --- a/docs/html/about/versions/jelly-bean.jd +++ b/docs/html/about/versions/jelly-bean.jd @@ -42,8 +42,13 @@ function revealSection(hashy) { link = $("#version-tabs a[href$="+sectionId+"]"); link.parent().addClass("selected"); link.parent().siblings().removeClass("selected"); - $(".version-section").hide(); - $(link.attr("href")).show(); + + sectionDiv = $(".version-section"+link.attr("href")); + if (sectionDiv.length) { + $(".version-section").hide(); + sectionDiv.show(); + } + $('html, body').animate({ scrollTop: $(hashy).offset().top }, 100); |