summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-12-28 15:42:36 +0100
committerLoïc Hoguin <[email protected]>2016-12-28 15:42:36 +0100
commitc30f4e08b33cbb92287987a6a0ce4b2c993928b1 (patch)
treef04a14eaf5db4927d1851f57a9565ee9163101dc /js
parent15d6172d27e1e5fc0435f00eb17faa8f79ccfba1 (diff)
downloadninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.tar.gz
ninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.tar.bz2
ninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.zip
List the REST callbacks in the navigation
Diffstat (limited to 'js')
-rw-r--r--js/custom.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/custom.js b/js/custom.js
index 5e418bd5..84936d37 100644
--- a/js/custom.js
+++ b/js/custom.js
@@ -39,5 +39,11 @@ $(document).ready(function() {;
$("#docs h2").each(function(){
$("<li><a href=\"#" + $(this).attr("id") + "\">" + $(this).text() + "</a></li>").appendTo("#docs-nav+ul");
});
+ if ($("#_rest_callbacks").length != 0){
+ $('<ul id="_rest_callbacks_nav"/>').insertAfter('#docs-nav+ul a[href="#_rest_callbacks"]');
+ $('#_rest_callbacks+div h3').each(function(){
+ $("<li><a href=\"#" + $(this).attr("id") + "\">" + $(this).text() + "</a></li>").appendTo('#docs-nav+ul a[href="#_rest_callbacks"]+ul');
+ });
+ }
}
});