Skip to content

Commit

Permalink
Display the doc-block toggle on everything again.
Browse files Browse the repository at this point in the history
This needs a clone otherwise each successive insertion detaches `toggle`
from the previous position.

Fixes #17125.
  • Loading branch information
huonw committed Sep 14, 2014
1 parent 1f4117f commit 0deb77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Expand Up @@ -762,7 +762,7 @@

$(".method").each(function() {
if ($(this).next().is(".docblock")) {
$(this).children().first().after(toggle[0]);
$(this).children().first().after(toggle.clone());
}
});

Expand Down

5 comments on commit 0deb77d

@bors
Copy link
Contributor

@bors bors commented on 0deb77d Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at huonw@0deb77d

@bors
Copy link
Contributor

@bors bors commented on 0deb77d Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging huonw/rust/toggle-clone = 0deb77d into auto

@bors
Copy link
Contributor

@bors bors commented on 0deb77d Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huonw/rust/toggle-clone = 0deb77d merged ok, testing candidate = e719db2

@bors
Copy link
Contributor

@bors bors commented on 0deb77d Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0deb77d Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = e719db2

Please sign in to comment.