am 4d3aa886: am ec4194ef: am 64b879ac: docs: fix js error when there\'s no api level cookie saved.

Merge commit '4d3aa886dbafcc76e0a5fa6b947a98395beb836e' into eclair-mr2-plus-aosp

* commit '4d3aa886dbafcc76e0a5fa6b947a98395beb836e':
  docs: fix js error when there's no api level cookie saved.
This commit is contained in:
Scott Main 2009-11-02 18:59:08 -08:00 committed by Android Git Automerger
commit 034a10891f
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function buildApiLevelSelector() {
var maxLevel = SINCE_DATA.length;
var userApiLevelEnabled = readCookie(API_LEVEL_ENABLED_COOKIE);
var userApiLevel = readCookie(API_LEVEL_COOKIE);
userApiLevel = userApiLevel == 0 ? maxLevel : userApiLevel; // If there's no cookie (zero), use the max by default
if (userApiLevelEnabled == 0) {
$("#apiLevelSelector").attr("disabled","disabled");