summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRobert Ly <robertly@google.com>2012-12-03 12:53:42 -0800
committerRobert Ly <robertly@google.com>2012-12-03 12:55:48 -0800
commit67d75f16f4c5a51da199f96931e9b6b9c17818c7 (patch)
tree8237fc69216f68f2a44322ffc2f99eae77e0e0a2 /tools
parent8fa5351cba16dcac5640f6e0cce794f29e1034f9 (diff)
downloadbuild-67d75f16f4c5a51da199f96931e9b6b9c17818c7.zip
build-67d75f16f4c5a51da199f96931e9b6b9c17818c7.tar.gz
build-67d75f16f4c5a51da199f96931e9b6b9c17818c7.tar.bz2
fix docs.js bug where changeApiLevel is getting called
Change-Id: Ic250afc792d7e4174bd987ce31df384dad3831ca
Diffstat (limited to 'tools')
-rw-r--r--tools/droiddoc/templates-sdk/assets/js/docs.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js
index 59ddb29..1cf68b3 100644
--- a/tools/droiddoc/templates-sdk/assets/js/docs.js
+++ b/tools/droiddoc/templates-sdk/assets/js/docs.js
@@ -1848,15 +1848,16 @@ function escapeHTML(string) {
/* ######################################################## */
/* Initialize some droiddoc stuff, but only if we're in the reference */
-if ((location.pathname.indexOf("/reference") &&
- !location.pathname.indexOf("/reference-gms/packages.html") &&
- !location.pathname.indexOf("/reference-gcm/packages.html") &&
- !location.pathname.indexOf("/reference/com/google")) == 0) {
- $(document).ready(function() {
- // init available apis based on user pref
- changeApiLevel();
- initSidenavHeightResize()
- });
+if (location.pathname.indexOf("/reference")) {
+ if(!location.pathname.indexOf("/reference-gms/packages.html")
+ && !location.pathname.indexOf("/reference-gcm/packages.html")
+ && !location.pathname.indexOf("/reference/com/google") == 0) {
+ $(document).ready(function() {
+ // init available apis based on user pref
+ changeApiLevel();
+ initSidenavHeightResize()
+ });
+ }
}
var API_LEVEL_COOKIE = "api_level";