diff options
author | Scott Main <smain@google.com> | 2010-04-16 09:00:29 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2010-04-16 09:05:06 -0700 |
commit | 7a0090b316482a2dc6f232ea312e1db63a9e919c (patch) | |
tree | b56bc113e9bb46823baeeb32d1c3d15a878d0150 /tools/droiddoc/templates/class.cs | |
parent | fcc7cf779905613d6bd48344b5c3a994237c02bd (diff) | |
download | build-7a0090b316482a2dc6f232ea312e1db63a9e919c.zip build-7a0090b316482a2dc6f232ea312e1db63a9e919c.tar.gz build-7a0090b316482a2dc6f232ea312e1db63a9e919c.tar.bz2 |
docs: add script to capture the ctrl+f key event (initiates 'find' search
on the page) and expand all inherited members.
Also move the appropriate methods from -docs.js into -reference.js where
they belong and add some function documentation.
Change-Id: I421bbf27d3b41d377776b3d64a97380458fcebd6
Diffstat (limited to 'tools/droiddoc/templates/class.cs')
-rw-r--r-- | tools/droiddoc/templates/class.cs | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/tools/droiddoc/templates/class.cs b/tools/droiddoc/templates/class.cs index 89eb927..d2add18 100644 --- a/tools/droiddoc/templates/class.cs +++ b/tools/droiddoc/templates/class.cs @@ -3,29 +3,6 @@ <html> <?cs include:"head_tag.cs" ?> <body class="<?cs var:class.since ?>"> -<script type="text/javascript"> -function toggleInherited(linkObj, expand) { - var base = linkObj.getAttribute("id"); - var list = document.getElementById(base + "-list"); - var summary = document.getElementById(base + "-summary"); - var trigger = document.getElementById(base + "-trigger"); - var a = $(linkObj); - if ( (expand == null && a.hasClass("closed")) || expand ) { - list.style.display = "none"; - summary.style.display = "block"; - trigger.src = "<?cs var:toroot ?>assets/images/triangle-opened.png"; - a.removeClass("closed"); - a.addClass("opened"); - } else if ( (expand == null && a.hasClass("opened")) || (expand == false) ) { - list.style.display = "block"; - summary.style.display = "none"; - trigger.src = "<?cs var:toroot ?>assets/images/triangle-closed.png"; - a.removeClass("opened"); - a.addClass("closed"); - } - return false; -} -</script> <?cs include:"header.cs" ?> <div class="g-unit" id="doc-content"> @@ -102,7 +79,7 @@ Summary: <?cs if:linkcount ?>| <?cs /if ?><a href="#inhmethods">Inherited Methods</a> <?cs /if ?> <?cs if:inhattrs || inhconstants || inhfields || inhmethods || subcount(class.subclasses.direct) || subcount(class.subclasses.indirect) ?> -| <a href="#" onclick="return toggleAllSummaryInherited(this)">[Expand All]</a> +| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> <?cs /if ?> </div><!-- end sum-details-links --> <div class="api-level"> |