1
Fork 0

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.
This commit is contained in:
Rory O’Kane 2015-04-30 00:09:46 -04:00
parent 2258aef74f
commit fc9bddd105

View file

@ -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">[&#x2212;]</a>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[&#x2212;]</a>
</span>"##));
// Write `src` tag