am 5c0f9e99: Merge "fix docs.js bug where changeApiLevel is getting called" into jb-mr1-dev

* commit '5c0f9e996a819806e5f088ded011bd30ef9c46d7':
  fix docs.js bug where changeApiLevel is getting called
This commit is contained in:
Robert Ly
2012-12-03 12:59:24 -08:00
committed by Android Git Automerger

View File

@@ -1853,15 +1853,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";