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:
parent
2258aef74f
commit
fc9bddd105
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue