summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2012-11-13 05:59:17 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-13 05:59:17 -0800
commit5878e2b32979d49e54711bfbe52d126c34fd24f4 (patch)
tree5a3a313be88be3ccfca1e73b9b468ba4df35b722 /docs
parent2c7e6cb773fb88f7e89fecf1b6dddf439cb9ec58 (diff)
parent3a535a47c3ea4f7de60ea38fb2d4664ae6eb9904 (diff)
downloadframeworks_base-5878e2b32979d49e54711bfbe52d126c34fd24f4.zip
frameworks_base-5878e2b32979d49e54711bfbe52d126c34fd24f4.tar.gz
frameworks_base-5878e2b32979d49e54711bfbe52d126c34fd24f4.tar.bz2
Merge "docs: fix bug with unknown anchors" into jb-mr1-dev
Diffstat (limited to 'docs')
-rw-r--r--docs/html/about/versions/jelly-bean.jd9
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 773130f..90b0f1b 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);