mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-05-03 20:25:06 +00:00
mediawiki toc: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9bdbde1f43
commit
bc49aa1606
@ -6,15 +6,11 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var asciidoc = {
|
var asciidoc = {
|
||||||
|
toc: function ($content) { // toc generator
|
||||||
// toc generator
|
|
||||||
toc: function ($content) {
|
|
||||||
var tocholder = $content.find('#toc');
|
var tocholder = $content.find('#toc');
|
||||||
|
|
||||||
if (!tocholder) {
|
if (!tocholder) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tocholder.html('');
|
tocholder.html('');
|
||||||
tocholder.hide();
|
tocholder.hide();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user