MCPcopy Index your code
hub / github.com/TruthHun/BookStack / toggleToc

Function toggleToc

static/js/bookstack.js:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150function toggleToc(){
151 if ($("article").find(".markdown-toc-list li").length ==0 ) {
152 $(".article-toggle").addClass("hidden");
153 }else{
154 $(".article-toggle").removeClass("hidden");
155 }
156}
157
158function active_readed_menu(url){
159 var links=$(".article-menu-detail a");

Callers 2

load_docFunction · 0.85
bookstack.jsFile · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected