am 6a040270: am 34a4b823: Merge "docs: revise message when api level for docs is too low; make the message appear on package pages as well" into jb-mr1-dev
* commit '6a0402701ee9672ef57f3049c3e6d7f5c01095b6': docs: revise message when api level for docs is too low; make the message appear on package pages as well
This commit is contained in:
commit
287d1e42b4
|
@ -1938,11 +1938,18 @@ function changeApiLevel() {
|
|||
|
||||
if (selectedLevel < minLevel) {
|
||||
var thing = ($("#jd-header").html().indexOf("package") != -1) ? "package" : "class";
|
||||
$("#naMessage").show().html("<div><p><strong>This " + thing + " is not available with API level " + selectedLevel + ".</strong></p>"
|
||||
+ "<p>To use this " + thing + ", you must develop your app using a build target "
|
||||
+ "that supports API level " + $("#doc-api-level").attr("class") + " or higher. To read these "
|
||||
+ "APIs, change the value of the API level filter above.</p>"
|
||||
+ "<p><a href='" +toRoot+ "guide/appendix/api-levels.html'>What is the API level?</a></p></div>");
|
||||
$("#naMessage").show().html("<div><p><strong>This " + thing
|
||||
+ " requires API level " + minLevel + " or higher.</strong></p>"
|
||||
+ "<p>This document is hidden because your selected API level for the documentation is "
|
||||
+ selectedLevel + ". You can change the documentation API level with the selector "
|
||||
+ "above the left navigation.</p>"
|
||||
+ "<p>For more information about specifying the API level your app requires, "
|
||||
+ "read <a href='" + toRoot + "training/basics/supporting-devices/platforms.html'"
|
||||
+ ">Supporting Different Platform Versions</a>.</p>"
|
||||
+ "<input type='button' value='OK, make this page visible' "
|
||||
+ "title='Change the API level to " + minLevel + "' "
|
||||
+ "onclick='$(\"#apiLevelSelector\").val(\"" + minLevel + "\");changeApiLevel();' />"
|
||||
+ "</div>");
|
||||
} else {
|
||||
$("#naMessage").hide();
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
elif:design ?>design<?cs
|
||||
elif:distribute ?>distribute<?cs
|
||||
/if ?>">
|
||||
<div id="doc-api-level" class="<?cs var:class.since ?>" style="display:none"></div>
|
||||
<div id="doc-api-level" class="<?cs var:package.since ?>" style="display:none"></div>
|
||||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue