diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2016-09-13 17:32:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 17:32:00 +0800 |
commit | 9d694003ba2f7e4e2e85e3ba02a0c2a2d688841e (patch) | |
tree | acd1f3379a5ea1c7e9a2e468a760387330bd88a0 | |
parent | 4324e63dd8a70a5cd587bb8e7c4142daa7817cbc (diff) | |
parent | 4329634b2929bc81f2fc6aa6f9c9dfecf6119ff2 (diff) |
Merge branch 'master' into intersphinx-not-so-fuller-id
-rw-r--r-- | pydoctor/templates/pydoctor.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pydoctor/templates/pydoctor.js b/pydoctor/templates/pydoctor.js index 39606d9..427e13e 100644 --- a/pydoctor/templates/pydoctor.js +++ b/pydoctor/templates/pydoctor.js @@ -1,7 +1,13 @@ function togglePrivate() { // Hide all private things by adding the private-hidden class to them. document.body.classList.toggle("private-hidden"); -} + var button = document.querySelector('#showPrivate button'); + if(document.body.classList.contains('private-hidden')) { + button.innerText = 'Show Private API'; + } else { + button.innerText = 'Hide Private API'; + } +} // On load, hide everything private togglePrivate() |