From 11057f5a0a6e439218cf731c8c78d2b5a70ed29c Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 4 Feb 2011 15:13:04 -0800 Subject: [PATCH] fix api level filtering script to compare integers, not strings Change-Id: I8f0e44ec2bf0833a0d547a3795ee31ee0dc69d8a --- .../templates-sdk/assets/android-developer-reference.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/droiddoc/templates-sdk/assets/android-developer-reference.js b/tools/droiddoc/templates-sdk/assets/android-developer-reference.js index daddde08cf..31a702b0c3 100644 --- a/tools/droiddoc/templates-sdk/assets/android-developer-reference.js +++ b/tools/droiddoc/templates-sdk/assets/android-developer-reference.js @@ -56,7 +56,7 @@ function changeApiLevel() { if (userApiLevelEnabled == 0) { toggleVisisbleApis(selectedLevel, "body"); } else { - selectedLevel = $("#apiLevelSelector option:selected").val(); + selectedLevel = parseInt($("#apiLevelSelector option:selected").val()); toggleVisisbleApis(selectedLevel, "body"); var date = new Date();