diff options
| author | Rory O’Kane <rory@roryokane.com> | 2015-04-30 00:09:46 -0400 |
|---|---|---|
| committer | Rory O’Kane <rory@roryokane.com> | 2015-04-30 00:09:46 -0400 |
| commit | fc9bddd1052f3f4002438d70c109dd6d69eeeba0 (patch) | |
| tree | 1f97cd44f0d238b8a0a4000ac4617f8be092aca1 | |
| parent | 2258aef74f4af9b7ac2087098494df77a6d5206c (diff) | |
| download | rust-fc9bddd1052f3f4002438d70c109dd6d69eeeba0.tar.gz rust-fc9bddd1052f3f4002438d70c109dd6d69eeeba0.zip | |
Change docs toggle href from # to javascript:
So that when you click the link, the URL doesn’t get # appended to it. The non-page-global docs toggle link, which is created in `main.js`, already uses this `href` value.
| -rw-r--r-- | src/librustdoc/html/render.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 3d5e13f3270..55935a90630 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -1460,7 +1460,7 @@ impl<'a> fmt::Display for Item<'a> { try!(write!(fmt, "<span class='out-of-band'>")); try!(write!(fmt, r##"<span id='render-detail'> - <a id="toggle-all-docs" href="#" title="collapse all docs">[−]</a> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[−]</a> </span>"##)); // Write `src` tag |
