diff options
Diffstat (limited to 'js/custom.js')
-rw-r--r-- | js/custom.js | 6 |
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'); + }); + } } }); |