diff options
| author | Scott Main <smain@google.com> | 2012-11-13 05:58:23 -0800 |
|---|---|---|
| committer | Scott Main <smain@google.com> | 2012-11-13 05:58:23 -0800 |
| commit | 3a535a47c3ea4f7de60ea38fb2d4664ae6eb9904 (patch) | |
| tree | efbea19f2eeafe2b2477660287946b2cd7f5ecf4 /docs/html | |
| parent | 0d881cb58c5fab43bb91ad7a97bc842717ba5ee9 (diff) | |
| download | frameworks_base-3a535a47c3ea4f7de60ea38fb2d4664ae6eb9904.zip frameworks_base-3a535a47c3ea4f7de60ea38fb2d4664ae6eb9904.tar.gz frameworks_base-3a535a47c3ea4f7de60ea38fb2d4664ae6eb9904.tar.bz2 | |
docs: fix bug with unknown anchors
Change-Id: I70f978ffd2248973a43ff1fe1dec2b0ac78cb63b
Diffstat (limited to 'docs/html')
| -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 1e21e0f..2680100 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); |
