Rollup merge of #24717 - liigo:add-back-toggle-links, r=alexcrichton
r? @alexcrichton (since you added `.stability` warning messages)
This commit is contained in:
@@ -828,6 +828,9 @@
|
|||||||
$(document).on("click", ".collapse-toggle", function() {
|
$(document).on("click", ".collapse-toggle", function() {
|
||||||
var toggle = $(this);
|
var toggle = $(this);
|
||||||
var relatedDoc = toggle.parent().next();
|
var relatedDoc = toggle.parent().next();
|
||||||
|
if (relatedDoc.is(".stability")) {
|
||||||
|
relatedDoc = relatedDoc.next();
|
||||||
|
}
|
||||||
if (relatedDoc.is(".docblock")) {
|
if (relatedDoc.is(".docblock")) {
|
||||||
if (relatedDoc.is(":visible")) {
|
if (relatedDoc.is(":visible")) {
|
||||||
relatedDoc.slideUp({duration:'fast', easing:'linear'});
|
relatedDoc.slideUp({duration:'fast', easing:'linear'});
|
||||||
@@ -848,7 +851,8 @@
|
|||||||
.html("[<span class='inner'>-</span>]");
|
.html("[<span class='inner'>-</span>]");
|
||||||
|
|
||||||
$(".method").each(function() {
|
$(".method").each(function() {
|
||||||
if ($(this).next().is(".docblock")) {
|
if ($(this).next().is(".docblock") ||
|
||||||
|
($(this).next().is(".stability") && $(this).next().next().is(".docblock"))) {
|
||||||
$(this).children().first().after(toggle.clone());
|
$(this).children().first().after(toggle.clone());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user