am 70b80f2a: am 7bfd28d7: am 4bfc9991: am 5c0f9e99: Merge "fix docs.js bug where changeApiLevel is getting called" into jb-mr1-dev
* commit '70b80f2a9efb7ff52e6ece8626cc13c222474d90':
fix docs.js bug where changeApiLevel is getting called
diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js
index e15ab84..b5f8946 100644
--- a/tools/droiddoc/templates-sdk/assets/js/docs.js
+++ b/tools/droiddoc/templates-sdk/assets/js/docs.js
@@ -1853,15 +1853,16 @@
/* ######################################################## */
/* 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";