diff options
| author | Michael Howell <michael@notriddle.com> | 2023-07-14 16:38:01 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-07-14 16:38:01 -0700 |
| commit | 34bc8fbea3b72ce1f9254dbed85fddb2d7985f75 (patch) | |
| tree | 5a4da5d81e5837c080faf50b82f81d22d5d4d9bc /src/librustdoc/html/static/js/source-script.js | |
| parent | ad963232d9b987d66a6f8e6ec4141f672b8b9900 (diff) | |
| download | rust-34bc8fbea3b72ce1f9254dbed85fddb2d7985f75.tar.gz rust-34bc8fbea3b72ce1f9254dbed85fddb2d7985f75.zip | |
rustdoc: use `src` consistently over `source` in code
The CSS uses an inconsistent mix of both. This commit switches it to always use `src`.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
| -rw-r--r-- | src/librustdoc/html/static/js/source-script.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/js/source-script.js b/src/librustdoc/html/static/js/source-script.js index 6eb99136040..54f3603865c 100644 --- a/src/librustdoc/html/static/js/source-script.js +++ b/src/librustdoc/html/static/js/source-script.js @@ -74,11 +74,11 @@ function createDirEntry(elem, parent, fullPath, hasFoundFile) { function toggleSidebar() { const child = this.parentNode.children[0]; if (child.innerText === ">") { - addClass(document.documentElement, "source-sidebar-expanded"); + addClass(document.documentElement, "src-sidebar-expanded"); child.innerText = "<"; updateLocalStorage("source-sidebar-show", "true"); } else { - removeClass(document.documentElement, "source-sidebar-expanded"); + removeClass(document.documentElement, "src-sidebar-expanded"); child.innerText = ">"; updateLocalStorage("source-sidebar-show", "false"); } @@ -110,7 +110,7 @@ function createSourceSidebar() { container.insertBefore(sidebarToggle, container.firstChild); const sidebar = document.createElement("div"); - sidebar.id = "source-sidebar"; + sidebar.id = "src-sidebar"; let hasFoundFile = false; |
