diff options
author | Loïc Hoguin <[email protected]> | 2016-12-28 15:42:36 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-12-28 15:42:36 +0100 |
commit | c30f4e08b33cbb92287987a6a0ce4b2c993928b1 (patch) | |
tree | f04a14eaf5db4927d1851f57a9565ee9163101dc /_build | |
parent | 15d6172d27e1e5fc0435f00eb17faa8f79ccfba1 (diff) | |
download | ninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.tar.gz ninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.tar.bz2 ninenines.eu-c30f4e08b33cbb92287987a6a0ce4b2c993928b1.zip |
List the REST callbacks in the navigation
Diffstat (limited to '_build')
-rw-r--r-- | _build/themes/ninenines/static/js/custom.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/_build/themes/ninenines/static/js/custom.js b/_build/themes/ninenines/static/js/custom.js index 5e418bd5..84936d37 100644 --- a/_build/themes/ninenines/static/js/custom.js +++ b/_build/themes/ninenines/static/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'); + }); + } } }); |